/* ==== style.css ==== */
/* VidhiRoots design system "Threshold Ledger" (16 Oct 2026; decision in site/README.md "Design system").
   Calm Clarity's layout in the Heritage-editorial identity: ivory paper, maroon headings, gold hairlines, the kolam as the one motif.
   This file holds the tokens, the base type, the shared components and the site shell (ribbon, header, menu, footer, corner button).
   Page styles live in src/css/<package>.css, which build.mjs appends after this file (sorted by name), so a page package
   never edits this file.

   Fonts, icons and graphics are served from this site; nothing loads from another domain. Cormorant (600, 600 italic) for display and
   headings, never below 20px; Jost (400, 500, 600) for everything else. SIL Open Font License (fonts/OFL.txt). Cinzel and Cormorant 700
   are no longer used (the logo is outlined), so build.mjs no longer ships them. */
@font-face { font-family: "Cormorant"; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant"; font-weight: 600; font-style: italic; font-display: swap; src: url(/fonts/cormorant-garamond-latin-600-italic.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/jost-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/jost-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/jost-latin-600-normal.woff2) format("woff2"); }

/* ---------------------------------------------------------------- tokens */
:root {
  /* Colour. Cream is the page (about 70%), sand alternate sections (15%), maroon headings, nodes and the arch (10%).
     Gold only for hairlines and on maroon, never as text on cream. Muted (5.9:1 on cream) is the lightest text colour allowed.
     Saffron only for kolam dots and the "closed" dot. --green is the "open" dot; open-status text uses --green-ink (6.5:1 on sand; --green
     itself was darkened to 5.3:1 on sand so older text uses still pass). WhatsApp green only on the WhatsApp call to action, with ink text
     (white and gold fail contrast). --field-line is the border of every form control and choice chip (at least 3:1 on paper, cream and sand). */
  --cream: #fbf5ea; --sand: #f3e6cf; --paper: #fffcf6;
  --maroon: #7a1f2b; --maroon-dark: #561420; --maroon-deep: #3f0f18;
  --gold: #d4a74a; --gold-soft: #f1dca6; --roots: #9a6a1f;
  --saffron: #f6b73c;
  --ink: #2b2118; --ink-2: #4a3d31; --muted: #6b5d4f;
  --line: #e8d9bd; --hair: rgba(154, 106, 31, .42); --hair-2: rgba(154, 106, 31, .2);
  --green: #1a6b43; --green-ink: #155c36;
  --field-line: #8a7a66;
  --wa: #25d366; --wa-hover: #1fc15c; --wa-ink: #111b21;

  /* Type */
  --serif: "Cormorant", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --fs-display: clamp(2.5rem, 1.6rem + 4.2vw, 4.75rem);
  --fs-h2: clamp(1.9rem, 1.4rem + 2.2vw, 3rem);
  --fs-h3: 1.5rem;
  --fs-lede: 1.15rem;
  --fs-body: 1.0625rem;   /* 17px */
  --fs-small: .9375rem;   /* 15px */
  --fs-xs: .8125rem;      /* 13px */
  --fs-eyebrow: .78rem;
  --fs-price: 2rem;
  --lh-body: 1.65;
  --measure: 38rem;

  /* Space: a 4px base */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 112px;
  --gutter: 20px;          /* 32px from 900px */
  --section: var(--s-8);   /* 112px from 900px */
  --wrap: 72rem;
  --header-h: 64px;

  /* Shape: square-cornered cards with hairlines; only the WhatsApp button is a pill */
  --r: 2px; --r-pill: 999px;
  --shadow-1: 0 1px 0 rgba(86, 20, 32, .04), 0 18px 40px -28px rgba(86, 20, 32, .45);
  --shadow-wa: 0 10px 26px -14px rgba(17, 27, 33, .55);

  /* Motion: transform, opacity and stroke-dashoffset only */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur-reveal: .6s;
}
@media (min-width: 900px) { :root { --gutter: 32px; --section: var(--s-9); --header-h: 76px; } }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 var(--fs-body)/var(--lh-body) var(--sans);
       -webkit-font-smoothing: antialiased; font-variant-numeric: lining-nums; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--maroon-dark); }
:focus-visible { outline: 2px solid var(--maroon); outline-offset: 3px; }
/* on the maroon bands the maroon ring would vanish: use the soft gold there */
.topbar :focus-visible, .site-footer :focus-visible { outline-color: var(--gold-soft); }
b, strong { font-weight: 600; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--maroon-dark); letter-spacing: -.012em; text-wrap: balance; margin: 0 0 .4em; }
h1, .display { font-family: var(--serif); font-weight: 600; font-size: var(--fs-display); line-height: 1.02; }
h2, .h2 { font-family: var(--serif); font-weight: 600; font-size: var(--fs-h2); line-height: 1.06; }
h3, .h3 { font-family: var(--serif); font-weight: 600; font-size: var(--fs-h3); line-height: 1.15; }
h4 { font: 600 1rem/1.4 var(--sans); color: var(--ink); margin: 0 0 .4em; }
:is(h1, h2, h3) em { font-style: italic; color: var(--maroon); }
p, ul, ol, dl, table, figure, blockquote { margin: 0 0 1em; }
small { font-size: var(--fs-small); }
hr { border: 0; border-top: 1px solid var(--hair); margin: var(--s-7) 0; }
code, kbd, samp { font-family: var(--mono); font-size: .9em; }
input, select, textarea, button { font: inherit; color: inherit; }
:where(input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"]), select, textarea) { border: 1px solid var(--field-line); border-radius: var(--r); }
main { display: block; overflow-x: clip; }
table { border-collapse: collapse; width: 100%; }
svg:not([width]) { max-width: 100%; }

/* ---------------------------------------------------------------- layout helpers */
.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: calc(46rem + 2 * var(--gutter)); }
.section { padding: var(--section) 0; }
.section-tight { padding: var(--s-7) 0; }
.section-sand { background: var(--sand); --ledger-bg: var(--sand); }
.measure { max-width: var(--measure); }
.center { text-align: center; }
.center .measure, .center.measure { margin-left: auto; margin-right: auto; }
.stack { display: flex; flex-direction: column; gap: var(--s-4); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }   /* form spam-trap field */
.skip { position: absolute; left: var(--s-4); top: -100px; z-index: 50; padding: 10px 16px; background: var(--maroon-dark); color: #fff; text-decoration: none; border-radius: var(--r); }
.skip:focus { top: var(--s-2); color: #fff; }
.draft { background: #ffe08a; color: #4a3500; text-align: center; padding: 6px 12px; font-size: .9rem; font-weight: 600; }
mark.todo { background: #ffe08a; color: #4a3500; padding: 0 3px; border-radius: 3px; }

/* Long text (policies, guides): a readable measure and calm rhythm */
.prose { max-width: var(--measure); }
.prose h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.3rem); margin: 1.6em 0 .4em; }
.prose h3 { margin: 1.4em 0 .3em; }
.prose li { margin: .35em 0; }
.prose table { font-size: var(--fs-small); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }

/* ---------------------------------------------------------------- type components */
/* Eyebrow: a gold rule, then a short label in small capitals. <p class="eyebrow">Before any money moves</p> */
.eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 var(--s-4); font: 500 var(--fs-eyebrow)/1.3 var(--sans);
           letter-spacing: .14em; text-transform: uppercase; color: var(--maroon); }
.eyebrow::before { content: ""; flex: none; width: 34px; height: 1px; background: var(--gold); }
.eyebrow.center, .center .eyebrow { justify-content: center; }
.eyebrow-plain::before { display: none; }
.lede { font-size: var(--fs-lede); line-height: 1.6; color: var(--ink-2); max-width: var(--measure); }
.fine { font-size: var(--fs-xs); line-height: 1.55; color: var(--muted); }
/* One italic line per page (Cormorant 600 italic), e.g. the regional names under a service: "milan, porutham" */
.regional { font: italic 600 1.25rem/1.3 var(--serif); color: var(--maroon); }
.section-head { margin-bottom: var(--s-7); }
.section-head > :last-child { margin-bottom: 0; }
.section-head h2 { margin-bottom: var(--s-4); }

/* ---------------------------------------------------------------- icons */
/* <svg class="ic" aria-hidden="true"><use href="#i-check"/></svg>. Symbols are in img/icons.svg (i-*) and img/kolam.svg (k-*);
   build.mjs copies into each page only the ones it uses. 24px grid, 1.6 stroke, currentColor. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { display: inline-block; flex: none; width: 24px; height: 24px; vertical-align: middle; fill: none; stroke: currentColor;
      stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 18px; height: 18px; }
.ic-lg { width: 32px; height: 32px; stroke-width: 1.3; }
.ic-maroon { color: var(--maroon); }

/* ---------------------------------------------------------------- buttons */
/* <a class="btn btn-wa" href="/wa/<name>" rel="nofollow noopener"><svg class="ic" aria-hidden="true"><use href="#i-wa"/></svg>Message us on WhatsApp</a>
   .btn-wa is the only pill and the only use of WhatsApp green. .btn-line is the quiet secondary; .btn-solid a maroon action that is not WhatsApp. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 13px 26px; border: 1px solid transparent;
       border-radius: var(--r); font: 500 1rem/1.15 var(--sans); letter-spacing: .01em; text-align: center; text-decoration: none; cursor: pointer;
       transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn .ic { width: 20px; height: 20px; }
.btn-wa { background: var(--wa); color: var(--wa-ink); border-radius: var(--r-pill); box-shadow: var(--shadow-wa); }
.btn-wa:hover { background: var(--wa-hover); color: var(--wa-ink); transform: translateY(-1px); }
.btn-line { background: transparent; color: var(--maroon-dark); border-color: var(--maroon); }
.btn-line:hover { background: rgba(122, 31, 43, .06); color: var(--maroon-dark); }
.btn-solid { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.btn-solid:hover { background: var(--maroon-dark); color: #fff; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .92rem; gap: 8px; box-shadow: none; }
.btn-block { display: flex; width: 100%; }
button.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
/* A text link with a gold rule under it: "See the four services and prices" */
.link-rule { color: var(--maroon-dark); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.link-rule:hover { border-bottom-color: var(--maroon); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; }
.link-arrow .ic { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover .ic { transform: translateX(3px); }

/* ---------------------------------------------------------------- chips */
/* <span class="chip">Canada</span>; .chip-mono for the CIN; .chip-dashed for "Example booking"; a list of chips is <ul class="chip-list"> */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--hair); border-radius: var(--r);
        background: var(--paper); color: var(--ink-2); font: 500 var(--fs-xs)/1.35 var(--sans); letter-spacing: .02em; white-space: nowrap; }
.chip .ic { width: 15px; height: 15px; }
.chip-mono { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .03em; }
.chip-dashed { border-style: dashed; color: var(--muted); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
/* a chip that is a choice (a button or a label): pressed/checked turns maroon */
button.chip, label.chip { cursor: pointer; min-height: 36px; padding: 6px 14px; border-color: var(--field-line); font-size: var(--fs-small); }
.chip[aria-pressed="true"], .chip.is-on, input:checked + .chip { background: var(--maroon); border-color: var(--maroon); color: #fff; }
input:focus-visible + .chip { outline: 2px solid var(--maroon); outline-offset: 2px; }
/* a chip that is a link (the 404 page's suggestions) */
a.chip { min-height: 40px; padding: 6px 14px; border-color: var(--field-line); color: var(--maroon-dark); font-size: var(--fs-small); text-decoration: none; }
a.chip:hover { border-color: var(--maroon); color: var(--maroon); }

/* The 404 page (src/404.html): the earlier draft's turning wheel, a short note, links as chips and the WhatsApp button */
.lost .lede { margin-left: auto; margin-right: auto; }
.lost-wheel { display: block; width: 168px; height: auto; margin: 0 auto var(--s-4); }
@media (prefers-reduced-motion: no-preference) { .lost-wheel { animation: lost-turn 120s linear infinite; } }
@keyframes lost-turn { to { transform: rotate(360deg); } }
.lost-links { justify-content: center; margin: var(--s-5) 0 var(--s-6); }
@media (min-width: 900px) { .lost-links { margin-left: -4rem; margin-right: -4rem; } }   /* the six links fit on one line */

/* ---------------------------------------------------------------- price figure */
/* <span class="price-label">30 minutes</span><span class="price-fig"><small>US$</small>45</span><span class="price-alt">C$65 · A$69</span>
   The numbers always come from site.config.json placeholders, never typed. */
.price-label { display: block; margin-bottom: 6px; font: 500 var(--fs-eyebrow)/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.price-fig { display: inline-block; font: 600 var(--fs-price)/1 var(--serif); color: var(--ink); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.price-fig small { margin-right: 3px; font: 500 .8rem/1 var(--sans); letter-spacing: .02em; color: var(--muted); vertical-align: .55em; }
.price-alt { display: block; margin-top: 6px; font-size: var(--fs-xs); color: var(--muted); }

/* ---------------------------------------------------------------- status dot */

/* ---------------------------------------------------------------- ledger frame, kolam corner knots, CHECK lines */
/* <div class="ledger">
     <span class="knot knot-tl" aria-hidden="true"><svg viewBox="-46 -46 92 92"><use href="#k-knot"/></svg></span> (and knot-tr, knot-bl, knot-br)
     ... <ol class="ledger-list"><li>...<p class="check-line"><b>Check</b>The refund table, service by service.</p></li></ol>
   </div>
   On a sand section the knots take the sand background (.section-sand sets --ledger-bg). */
.ledger { position: relative; margin: 19px 2px; padding: 40px 20px 20px; border: 1px solid var(--hair); }
.ledger::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--hair-2); pointer-events: none; }
@media (min-width: 760px) { .ledger { padding: 56px 44px 32px; } }
.knot { position: absolute; width: 38px; height: 38px; padding: 5px; background: var(--ledger-bg, var(--cream)); color: var(--roots); line-height: 0; }
.knot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.knot-tl { left: -19px; top: -19px; } .knot-tr { right: -19px; top: -19px; }
.knot-bl { left: -19px; bottom: -19px; } .knot-br { right: -19px; bottom: -19px; }
.ledger-list { list-style: none; margin: 0; padding: 0; }
.ledger-list > li { padding: var(--s-5) 0; border-top: 1px solid var(--hair); }
.ledger-list > li:first-child { border-top: 0; }
.check-line { display: flex; gap: 10px; align-items: baseline; margin: var(--s-3) 0 0; font-size: var(--fs-small); color: var(--muted); }
.check-line b { flex: none; font: 600 var(--fs-xs)/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--maroon); }
/* Square card with a hairline, for anything that needs a box */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-5); }
/* "An illustration" style caption under an example */
.caption { margin: var(--s-2) 0 0; font-size: var(--fs-xs); color: var(--muted); }

/* ---------------------------------------------------------------- threshold strip and kolam */
/* <div class="threshold" aria-hidden="true"></div> between sections, at most two per page */
.threshold { position: relative; overflow: hidden; height: 30px; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
             background: url(/img/threshold.svg) center / 28px 28px repeat-x; opacity: .85;
             -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
/* a glint of gold passes along the strip every nine seconds, once the page has loaded */
@media (prefers-reduced-motion: no-preference) {
  .threshold::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(246, 183, 60, .55), transparent) no-repeat; background-size: 26% 100%;
                      animation: vr-glint 9s ease-in-out 1.5s infinite; }
}
@keyframes vr-glint { 0% { background-position: -40% 0; } 55%, 100% { background-position: 140% 0; } }
/* <svg class="kolam" viewBox="-51 -51 302 302" aria-hidden="true"><use href="#k-sikku"/></svg>: the line takes the color (gold-soft on maroon);
   add .k-draw to draw it once in 2.4s (only with JavaScript and when motion is welcome; otherwise it is simply there) */
.kolam { display: block; color: var(--gold-soft); }
@media (prefers-reduced-motion: no-preference) {
  html.js .k-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: vr-draw 2.4s cubic-bezier(.45, .05, .35, 1) .2s forwards; }
}
@keyframes vr-draw { to { stroke-dashoffset: 0; } }

/* ---------------------------------------------------------------- reveal */
/* class="rv": rises 12px over 600ms once, as it scrolls into view. shell.mjs marks what is already on screen as seen first, so
   nothing above the fold blinks; without JavaScript, or with reduced motion, everything is simply there. */
@media (prefers-reduced-motion: no-preference) {
  html.rv-ready .rv { transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease); }
  /* from 55% opacity, never from nothing: a browser that never reports the scroll (some in-app browsers) still shows everything */
  html.rv-ready .rv:not(.in) { opacity: .55; transform: translateY(12px); }
}

/* ---------------------------------------------------------------- FAQ */
/* <div class="faq"><details><summary>Question</summary><p>Answer</p></details>...</div> */
.faq { border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); padding: 18px 0; cursor: pointer; list-style: none;
               font: 500 1.05rem/1.45 var(--sans); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 1.4rem/1 var(--sans); color: var(--maroon); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > :not(summary) { max-width: var(--measure); margin: 0 0 18px; color: var(--ink-2); }

/* ================================================================ the shell (_layout.html) */
/* Top banner: the maroon strip. What scrolls in it is css/ticker.css */
.topbar { background: var(--maroon-dark); color: var(--gold-soft); font-size: var(--fs-xs); line-height: 1.35; }
.topbar-in { display: flex; align-items: center; gap: var(--s-4); min-height: 34px; padding-top: 5px; padding-bottom: 5px; }
.topbar p { margin: 0; }

/* Header: logo, main navigation, WhatsApp button and (phones, with JavaScript) the menu button */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(251, 245, 234, .97); }
@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .site-header { background: rgba(251, 245, 234, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
                      background: linear-gradient(90deg, transparent, var(--gold) 12%, var(--gold) 88%, transparent); }
.header-in { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-2); min-height: var(--header-h); }
.logo { display: block; flex: none; margin-right: auto; padding: 6px 0; line-height: 0; }
.logo img { width: auto; height: 26px; }
.header-acts { display: flex; align-items: center; gap: var(--s-2); }
.header-acts .btn-wa { min-height: 40px; padding: 8px 12px; }
.btn-wa-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-nav { order: 3; width: 100%; }
.site-nav ul { display: flex; gap: 4px 20px; margin: 0; padding: 0 0 10px; list-style: none; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.site-nav a { display: inline-block; padding: 6px 0; color: var(--ink); font-size: .95rem; font-weight: 500; text-decoration: none;
              background: linear-gradient(var(--gold), var(--gold)) left bottom / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.site-nav a:hover { color: var(--maroon); background-size: 100% 1px; }
.site-nav a[aria-current="page"] { color: var(--maroon); background-size: 100% 1px; }
.menu-btn { display: none; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--hair); border-radius: var(--r);
            background: transparent; color: var(--maroon-dark); cursor: pointer; }
.menu-btn .ic-x, .menu-btn[aria-expanded="true"] .ic-bars { display: none; }
.menu-btn[aria-expanded="true"] .ic-x { display: inline-block; }
/* With JavaScript the phone navigation folds into the menu button; without it, it stays a scrolling row under the logo */
@media (max-width: 1199px) {
  html.js .menu-btn { display: grid; }
  html.js .site-nav { display: none; }
  html.js .site-header.menu-open .site-nav { display: block; position: absolute; top: 100%; left: 0; right: 0; padding: 4px var(--gutter) 20px;
                                              background: var(--cream); border-bottom: 1px solid var(--hair); box-shadow: var(--shadow-1); }
  html.js .site-header.menu-open .site-nav ul { flex-direction: column; gap: 0; padding: 0; overflow: visible; }
  html.js .site-header.menu-open .site-nav a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; background: none; }
  html.js .site-header.menu-open .site-nav li:last-child a { border-bottom: 0; }
}
@media (min-width: 560px) {
  .btn-wa-label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .header-acts .btn-wa { padding: 8px 16px; }
}
/* phones: logo, WhatsApp and the menu button must share one row */
@media (max-width: 419px) {
  .header-in { column-gap: 6px; }
  .logo img { height: 20px; }
  .header-acts { gap: 6px; }
  .header-acts .btn-wa { padding: 8px 10px; }
}
@media (max-width: 389px) { :root { --gutter: 16px; } .logo img { height: 18px; } }
@media (max-width: 359px) { :root { --gutter: 14px; } .logo img { height: 18px; } .header-acts { gap: 4px; } .header-acts .btn-wa { padding: 8px; } }
@media (min-width: 900px) { .logo img { height: 32px; } }
@media (min-width: 1200px) {
  .header-in { flex-wrap: nowrap; gap: var(--s-6); }
  .logo { margin-right: 0; }
  .site-nav { order: 0; width: auto; margin-left: auto; }
  .site-nav ul { gap: 24px; padding: 0; overflow: visible; }
}

/* Footer: maroon-dark. Brand, the one WhatsApp button and the "How we work" link, the link groups (folded on phones by shell.mjs), countries,
   the disclaimer and the legal strip with the CIN chip */
.site-footer { background: var(--maroon-dark); color: #ead9c0; font-size: var(--fs-small); padding: var(--s-7) 0 calc(96px + env(safe-area-inset-bottom, 0px)); }
.site-footer a { color: var(--gold-soft); }
.site-footer a:hover { color: #fff; }
.site-footer h2 { margin: 0 0 var(--s-3); font: 500 var(--fs-eyebrow)/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.foot-grid { display: grid; gap: var(--s-6); }
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); }
.foot-brand .mark { width: 48px; height: 48px; }
.foot-brand p { margin: 0; }
.foot-tag { font: 600 1.4rem/1.25 var(--serif); color: #fff7e6; }
/* the WhatsApp button keeps ink text (gold on WhatsApp green is 1.5:1) and the number on one line */
.site-footer .btn-wa, .site-footer .btn-wa:hover { color: var(--wa-ink); white-space: nowrap; }
.foot-how { color: var(--gold-soft); }
.foot-how .ic { width: 18px; height: 18px; }
.foot-links { display: grid; grid-template-columns: minmax(0, 1fr); }
.foot-group summary { list-style: none; }
.foot-group summary::-webkit-details-marker { display: none; }
.foot-group summary h2 { margin: 0; }
.foot-links ul { margin: 0; padding: 0; list-style: none; }
.foot-links li { margin: 0 0 6px; }
@media (max-width: 759px) {
  .foot-group { border-top: 1px solid rgba(241, 220, 166, .2); }
  .foot-group summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; cursor: pointer; }
  .foot-group summary::after { content: "+"; font: 400 1.35rem/1 var(--sans); color: var(--gold-soft); }
  .foot-group[open] summary::after { content: "\2212"; }
  .foot-group ul { padding: 0 0 var(--s-4); }
  .foot-links li { margin: 0; }
  .foot-links li a { display: block; padding: 7px 0; }
}
@media (min-width: 760px) {
  .foot-links { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
  .foot-group summary { margin: 0 0 var(--s-3); cursor: default; pointer-events: none; }
}
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-where { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid rgba(241, 220, 166, .2); }
.foot-where .chip { background: transparent; border-color: rgba(241, 220, 166, .35); color: var(--gold-soft); }
.foot-where p { margin: var(--s-3) 0 0; color: #d9c4a6; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin: var(--s-4) 0 0; padding: 0; list-style: none; }
.socials:empty { display: none; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(212, 167, 74, .45); border-radius: 50%; color: var(--gold-soft); transition: background-color .2s, color .2s; }
.socials a:hover { background: var(--gold-soft); color: var(--maroon-dark); }
.socials .ic { width: 18px; height: 18px; }
.foot-note { margin: var(--s-6) 0 0; max-width: 60rem; color: #d9c4a6; font-size: var(--fs-xs); line-height: 1.6; }
.foot-legal { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); margin-top: var(--s-5); padding-top: var(--s-5);
              border-top: 1px solid rgba(241, 220, 166, .2); color: #d9c4a6; font-size: var(--fs-xs); }
.foot-legal p { margin: 0; }
.foot-legal .chip { background: rgba(0, 0, 0, .18); border-color: rgba(241, 220, 166, .35); color: #fff7e6; }
@media (min-width: 1100px) { .foot-grid { grid-template-columns: 1fr 2fr; gap: var(--s-7); } }

/* Corner WhatsApp button (fab.mjs shows it): a round button on phones, a "Message us" pill from 1024px. Hidden until the script adds .on,
   so without JavaScript it never appears and never shifts the layout. WhatsApp green with an ink glyph. */
.fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 25;
       display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 56px; height: 56px; border-radius: var(--r-pill);
       background: var(--wa); color: var(--wa-ink); text-decoration: none; font: 500 .95rem/1 var(--sans);
       box-shadow: 0 8px 22px -8px rgba(17, 27, 33, .55), 0 0 0 1px rgba(17, 27, 33, .08);
       opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility 0s .2s; }
.fab.on { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: opacity .2s, transform .2s, visibility 0s; }
.fab:hover { background: var(--wa-hover); color: var(--wa-ink); }
.fab .ic { width: 28px; height: 28px; }
.fab .fab-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 1024px) {
  .fab { width: auto; height: 48px; padding: 0 20px 0 14px; }
  .fab .ic { width: 22px; height: 22px; }
  .fab .fab-label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
}

/* ---------------------------------------------------------------- reduced motion: every final state, no animation, no transition */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- print */
@media print {
  .topbar, .site-header, .fab, .menu-btn, .skip { display: none !important; }
  .site-footer { background: none; color: var(--ink); padding: 24px 0; }
  .site-footer a, .site-footer h2 { color: var(--ink); }
}

/* ==== css/explorer.css ==== */
/* Home page, "Services and prices": the earlier draft's services explorer (commit 82bab48, index.html "services" and style.css "Services explorer"),
   restored on 17 Oct 2026 at the owner's request, in the current design, and merged on 18 Oct 2026 with the price cards: the four tabs ARE the
   price cards (home.mjs still fills their [data-price-key] spans). Every class starts with .hx and every keyframe with hx-.
   Four radio tabs (no script; keyboard: Tab to the group, arrow keys to change) pick a service. Its panel shows a 16-second looping scene on
   the left (the service photo drifting slowly, a stories-style progress bar and four frames of example screens) and the service's four steps
   on the right, each lit while its frame plays. Picking a tab shows that panel afresh, so its loop starts again at step 1; hidden panels are
   display: none and don't animate. The scene is aria-hidden and labelled "An example"; it carries no real customer data and no prices.
   Motion: each base style is the settled picture (the fourth frame, every row filled in). The animations run only when motion is welcome,
   so with reduced motion (and under the global rule in style.css) the scene shows its last frame and nothing moves. */

/* ---------------------------------------------------------------- the four tabs */
.hx-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: var(--s-2); margin-bottom: var(--s-4); }
.hx-tabs label { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto 1fr; align-content: start; align-items: center; gap: 0 12px;
                 padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer;
                 transition: border-color .2s, background-color .2s; }
.hx-tabs .ic { grid-row: 1 / span 2; width: 28px; height: 28px; stroke-width: 1.4; color: var(--maroon); }
.hx-tabs b { font: 600 1.3rem/1.15 var(--serif); font-variant-numeric: lining-nums; color: var(--maroon-dark); }
.hx-tabs label > small { font-size: var(--fs-xs); line-height: 1.35; color: var(--muted); }
.hx-tabs label:hover { border-color: var(--maroon); }
.hx-tabs input:checked + label { background: var(--maroon); border-color: var(--maroon); }
.hx-tabs input:checked + label b { color: #fff7e6; }
.hx-tabs input:checked + label > small, .hx-tabs input:checked + label .ic { color: var(--gold-soft); }
.hx-tabs input:focus-visible + label { outline: 2px solid var(--maroon); outline-offset: 3px; }
/* the price on each card: the visitor's currency (home.mjs), or the three currencies when it cannot tell (no script, or a visitor in India) */
.hx-pr { grid-column: 1 / -1; align-self: end; display: grid; gap: 4px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--hair); }
.hx-pr > span { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 8px; }
.hx-pr .price-label { display: inline; margin: 0; font-size: .6875rem; letter-spacing: .1em; }
.hx-pr .price-fig { font-size: 1.5rem; }
.hx-pr .hm-price-all { font-size: var(--fs-xs); line-height: 1.35; }
.hx-tabs input:checked + label .hx-pr { border-top-color: rgba(255, 247, 230, .3); }
.hx-tabs input:checked + label .price-label, .hx-tabs input:checked + label .price-fig, .hx-tabs input:checked + label .hm-price-all { color: #fff7e6; }
.hx-tabs input:checked + label .price-fig small { color: var(--gold-soft); }
/* phones: icon above the name, so "Kundli matching" keeps to one line */
@media (max-width: 599px) {
  .hx-tabs label { grid-template-columns: minmax(0, 1fr); align-content: start; align-items: start; gap: 2px; padding: 10px 12px 12px; }
  .hx-tabs .ic { grid-row: auto; width: 24px; height: 24px; margin-bottom: 4px; }
  .hx-tabs label { grid-template-rows: none; }
  .hx-pr { grid-column: auto; margin-top: 8px; }
  .hx-scene { min-height: 360px; }
  .hx-tabs b { font-size: 1.25rem; }
}
@media (max-width: 899px) {
  .hx-tabs label:last-of-type { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .hx-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-3); margin-bottom: var(--s-5); }
  .hx-tabs label { padding: 12px 10px; gap: 0 8px; }
  /* a small maroon point under the chosen tab, towards its panel */
  .hx-tabs input:checked + label::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 12px; height: 12px; margin-left: -6px;
                                          background: var(--maroon); transform: rotate(45deg); }
}

/* ---------------------------------------------------------------- the panel: scene and steps */
.hx-panel { display: none; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.hx:has(#hx-consult:checked) .hx-p-consult, .hx:has(#hx-match:checked) .hx-p-match,
.hx:has(#hx-muhurat:checked) .hx-p-muhurat, .hx:has(#hx-puja:checked) .hx-p-puja,
.hx:has(#hx-ceremony:checked) .hx-p-ceremony { display: grid; }
/* a browser without :has() shows the four panels one after another; the cards stay above them as a plain price list */
@supports not selector(:has(*)) {
  .hx-tabs label { cursor: default; }
  .hx-panel { display: grid; }
  .hx-panel + .hx-panel { margin-top: var(--s-4); }
}
@media (min-width: 900px) { .hx-panel { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--s-6); } }

/* the scene: a night backdrop, the photo drifting, the progress bar, the frames and the "An example" label */
.hx-scene { position: relative; isolation: isolate; overflow: hidden; min-height: 420px; background: #170a0d; color: #111b21; font-size: .875rem; line-height: 1.4; }
@media (min-width: 900px) { .hx-scene { min-height: 520px; } }
.hx-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .6; transform: scale(1.02); }
.hx-scene::before { content: ""; position: absolute; inset: 0; z-index: -1;
                    background: linear-gradient(180deg, rgba(23, 10, 13, .55), rgba(23, 10, 13, .2) 40%, rgba(23, 10, 13, .75)); }
.hx-ex { position: absolute; left: 12px; bottom: 12px; padding: 2px 8px; background: rgba(23, 10, 13, .72); color: #fff7e6;
         font: 500 .75rem/1.4 var(--sans); letter-spacing: .06em; }
.hx-prog { display: none; position: absolute; left: 14px; right: 14px; top: 14px; height: 3px; overflow: hidden; background: rgba(255, 255, 255, .3);
           -webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(25% - 5px), transparent 0 25%); mask: repeating-linear-gradient(90deg, #000 0 calc(25% - 5px), transparent 0 25%); }
.hx-prog::before { content: ""; display: block; height: 100%; background: #fff; transform-origin: left; }
.hx-fr { position: absolute; inset: 40px 20px 46px; display: grid; place-items: center; opacity: 0; }
.hx-f1 { --d: 0s; } .hx-f2 { --d: 4s; } .hx-f3 { --d: 8s; } .hx-f4 { --d: 12s; opacity: 1; }

/* WhatsApp chat bubbles */
.hx-chat { display: flex; flex-direction: column; gap: 8px; width: min(330px, 100%); }
.hx-b { position: relative; margin: 0; max-width: 86%; padding: 7px 10px; border-radius: 8px; color: #111b21; font-size: .9rem; line-height: 1.45;
        box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.hx-me { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 0; }
.hx-us { align-self: flex-start; background: #fff; border-top-left-radius: 0; }
.hx-who { display: block; margin-bottom: 2px; color: #008069; font-size: .75rem; font-weight: 600; letter-spacing: .02em; }
.hx-tick { width: 16px; height: 11px; margin-left: 6px; vertical-align: -1px; fill: none; stroke: #53bdeb; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hx-pbtn { display: block; margin: 7px -10px -7px; padding: 8px; border-top: 1px solid #e9edef; color: #008069; font-weight: 600; text-align: center; }
.hx-video { padding: 4px; }
.hx-thumb { position: relative; display: grid; place-items: center; width: 240px; max-width: 100%; aspect-ratio: 16 / 10; border-radius: 6px;
            background: radial-gradient(circle at 50% 60%, #7a3b16, #2b1016 70%); }
.hx-thumb svg { width: 64px; height: 64px; fill: none; stroke: #f6b73c; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.hx-thumb i { position: absolute; left: 10px; bottom: 10px; width: 32px; height: 32px; border-radius: 50%; background: rgba(0, 0, 0, .5); }
.hx-thumb i::after { content: ""; position: absolute; left: 12px; top: 9px; border: 7px solid transparent; border-left: 11px solid #fff; border-right: 0; }
.hx-cap { display: block; padding: 6px 6px 2px; }

/* cards that stand for forms, pickers and documents (no real customer data) */
.hx-ui { width: min(320px, 100%); padding: 16px 18px; border-radius: 12px; background: #fff; color: #111b21; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); }
.hx-t { display: block; margin-bottom: 8px; font: 600 1.3rem/1.2 var(--serif); font-variant-numeric: lining-nums; color: var(--maroon-dark); }
.hx-ui small { display: block; margin-top: 8px; color: #667781; font-size: .78rem; line-height: 1.4; }
.hx-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 10px; margin: 7px 0; }
.hx-row em { font-style: normal; color: #667781; font-size: .8rem; }
.hx-row i, .hx-row b { position: relative; min-height: 30px; border: 1px solid #e3e6e8; border-radius: 8px; }
.hx-row i::after { content: ""; position: absolute; left: 10px; top: 11px; width: 60%; height: 7px; border-radius: 4px; background: #d1d7db; transform-origin: left; }
.hx-row:nth-of-type(2) i::after { width: 42%; }
.hx-row:nth-of-type(3) i::after { width: 70%; }
.hx-row:nth-of-type(4) i::after { width: 50%; }
.hx-row b { padding: 4px 10px; font-weight: 600; font-size: .85rem; line-height: 20px; }
.hx-done { display: block; margin-top: 12px; padding: 7px 10px; border-radius: 8px; background: #d9fdd3; color: #0b6b3a; font-weight: 600; font-size: .82rem; }
.hx-seg { display: flex; gap: 6px; margin: 10px 0 0; }
.hx-seg i, .hx-grid i { font-style: normal; text-align: center; border: 1px solid #e3e6e8; border-radius: 8px; padding: 6px 4px; font-size: .8rem; }
.hx-seg i { flex: 1; }
.hx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.hx-seg .hx-on, .hx-grid .hx-pick { background: #d9fdd3; color: #0b6b3a; border-color: #25d366; }

/* the video call: astrologer, you, and family in India joining */
.hx-call { width: min(340px, 100%); padding: 10px; border-radius: 16px; background: #202c33; }
.hx-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hx-tiles i { position: relative; display: flex; align-items: flex-end; aspect-ratio: 4 / 3; padding: 6px 8px; overflow: hidden; border-radius: 10px;
              background: #2a3942; color: #e9edef; font-style: normal; font-size: .75rem; line-height: 1.2; }
.hx-tiles i::before { content: ""; position: absolute; left: 50%; top: 40%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: #54656f;
                      box-shadow: 0 30px 0 -2px #54656f; clip-path: inset(0 0 -40% 0 round 50%); }
.hx-tiles .hx-a { background: #3b2a2f; }
.hx-tiles .hx-a::before { background: #8a5a44; box-shadow: 0 30px 0 -2px #8a5a44; }
/* the speaker's ring */
.hx-tiles .hx-a::after { content: ""; position: absolute; left: 50%; top: 40%; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; box-shadow: 0 0 0 2px #25d366; }
.hx-ctl { display: flex; justify-content: center; gap: 14px; padding: 10px 0 2px; }
.hx-ctl i { width: 32px; height: 32px; border-radius: 50%; background: #3b4a54; }
.hx-ctl .hx-end { background: #ea0038; }

/* matching: both people's details, the charts compared, the result */
.hx-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; width: min(400px, 100%); }
.hx-pair .hx-row { grid-template-columns: minmax(0, 1fr); gap: 3px; margin: 6px 0; }
.hx-pair small { grid-column: 1 / -1; }
.hx-compare { width: min(340px, 100%); }
.hx-charts { display: flex; justify-content: center; gap: 18px; }
.hx-chart { width: 100px; height: 100px; fill: none; stroke: var(--maroon); stroke-width: 1.4; }
.hx-chart * { stroke-dasharray: 100; }
.hx-kootas { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-top: 14px; }
.hx-kootas span { display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: center; gap: 6px; }
.hx-kootas em { font-style: normal; font-size: .75rem; color: #667781; white-space: nowrap; }
.hx-kootas i { height: 5px; border-radius: 3px; background: linear-gradient(90deg, #c8963a, #e7bf63); transform-origin: left; }
.hx-kootas span:nth-child(3n+2) i { width: 70%; }
.hx-kootas span:nth-child(3n) i { width: 45%; }
.hx-result, .hx-letter { display: grid; gap: 10px; }
.hx-doc, .hx-ring { display: flex; align-items: center; gap: 12px; color: #667781; font-size: .8rem; line-height: 1.35; }
.hx-ring { padding-top: 10px; border-top: 1px solid #e9edef; }
.hx-ui svg:not(.hx-chart) { flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: #f3e6cf; fill: none; stroke: var(--maroon);
                            stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hx-ring svg { background: #d9fdd3; stroke: #0b6b3a; }
.hx-doc b, .hx-ring b { display: block; font: 600 1.25rem/1.2 var(--serif); color: var(--maroon-dark); }
.hx-letter .hx-row { margin: 0; }
.hx-tz { justify-self: start; padding: 4px 10px; border-radius: 999px; background: #d9fdd3; color: #0b6b3a; font-weight: 600; font-size: .78rem; }

/* muhurat: a month with the candidate dates and the one chosen */
.hx-dow, .hx-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
.hx-dow i { font-style: normal; color: #667781; font-size: .72rem; }
.hx-days i { width: 26px; height: 26px; margin: 0 auto; border-radius: 50%; font-style: normal; font-size: .8rem; line-height: 26px; }
.hx-days .hx-cand { background: #d9fdd3; color: #0b6b3a; }
.hx-days .hx-pick { background: var(--maroon-dark); color: #fff7e6; font-weight: 600; }

/* puja: the date agreed with the temple */
.hx-agreed { display: grid; justify-items: center; gap: 8px; text-align: center; }
.hx-ui.hx-agreed > svg { width: 60px; height: 60px; padding: 14px; }
.hx-agreed > b { font: 600 1.3rem/1.2 var(--serif); color: var(--maroon-dark); }
.hx-agreed .hx-row { width: 100%; margin: 0; text-align: left; }
.hx-agreed .hx-done { width: 100%; margin-top: 2px; }

/* the text side: the service, its four steps, a guide */
.hx-info { display: flex; flex-direction: column; min-width: 0; padding: var(--s-5) 20px; }
.hx-kind { margin: 0 0 6px; font: 500 var(--fs-eyebrow)/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hx-info h3 { margin: 0 0 2px; }
.hx-info .regional { margin: 0 0 var(--s-3); }
.hx-what { margin: 0 0 var(--s-4); font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); }
.hx-steps { counter-reset: hx; margin: 0; padding: 0; list-style: none; }
.hx-steps li { counter-increment: hx; position: relative; isolation: isolate; padding: 10px 12px 10px 58px; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); }
.hx-steps li + li { margin-top: 4px; }
.hx-steps li:nth-child(2) { --d: 4s; } .hx-steps li:nth-child(3) { --d: 8s; } .hx-steps li:nth-child(4) { --d: 12s; }
/* the step's light (it fades in while its frame plays) and the dashed line down to the next number */
.hx-steps li::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sand); opacity: 0; }
.hx-steps li:not(:last-child)::after { content: ""; position: absolute; left: 28px; top: 46px; bottom: -14px; border-left: 1px dashed var(--hair); }
.hx-steps b { display: block; margin-bottom: 2px; font-size: 1rem; font-weight: 600; color: var(--maroon-dark); }
.hx-n { position: absolute; left: 12px; top: 10px; display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid var(--maroon); border-radius: 50%;
        background: var(--paper); font: 600 1.25rem/1 var(--serif); font-variant-numeric: lining-nums; color: var(--maroon); }
.hx-n::before { content: counter(hx); }
.hx-n::after { content: counter(hx); position: absolute; inset: -1px; display: grid; place-items: center; border-radius: 50%; background: var(--maroon); color: #fff7e6; opacity: 0; }
/* the way in: the green WhatsApp button for this service, and its guide */
.hx-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin: auto 0 0; padding-top: var(--s-4); font-size: var(--fs-small); }
@media (min-width: 900px) {
  .hx-info { padding: var(--s-6) var(--s-6) var(--s-6) 0; }
  .hx-info h3 { font-size: 1.75rem; }
}

/* ---------------------------------------------------------------- motion (only when it is welcome) */
@media (prefers-reduced-motion: no-preference) {
  .hx-prog { display: block; }
  .hx-prog::before { animation: hx-prog 16s linear infinite; }
  .hx-bg { animation: hx-drift 16s ease-in-out infinite alternate; }
  .hx-fr { animation: hx-frame 16s var(--d) infinite backwards; }
  .hx-fr * { animation-duration: 16s; animation-iteration-count: infinite; animation-fill-mode: backwards; }
  .hx-me { animation-name: hx-pop; animation-delay: calc(var(--d) + .3s); }
  .hx-us { animation-name: hx-pop; animation-delay: calc(var(--d) + 1.5s); }
  .hx-us.hx-video { animation-delay: calc(var(--d) + .3s); }
  .hx-row i::after { animation: hx-grow 16s calc(var(--d) + .7s) infinite backwards; }
  .hx-row:nth-of-type(2) i::after { animation-delay: calc(var(--d) + 1.4s); }
  .hx-row:nth-of-type(3) i::after { animation-delay: calc(var(--d) + 2.1s); }
  .hx-row:nth-of-type(4) i::after { animation-delay: calc(var(--d) + 2.8s); }
  .hx-pair > span + span .hx-row i::after { animation-delay: calc(var(--d) + 2s); }
  .hx-row b { animation-name: hx-pop; animation-delay: calc(var(--d) + .6s); }
  .hx-row:nth-of-type(2) b { animation-delay: calc(var(--d) + 1.2s); }
  .hx-row:nth-of-type(3) b { animation-delay: calc(var(--d) + 1.8s); }
  .hx-done { animation-name: hx-pop; animation-delay: calc(var(--d) + 2.4s); }
  .hx-seg .hx-on { animation-name: hx-mark; animation-delay: calc(var(--d) + 1.2s); }
  .hx-grid .hx-pick { animation-name: hx-mark; animation-delay: calc(var(--d) + 1.4s); }
  .hx-tiles i { animation-name: hx-pop; animation-delay: var(--d); }
  .hx-tiles .hx-late { animation-delay: calc(var(--d) + 1.2s); }
  .hx-tiles .hx-late2 { animation-delay: calc(var(--d) + 2s); }
  .hx-tiles .hx-a::after { animation: hx-pulse 1.6s ease-out infinite; }
  .hx-chart * { animation-name: hx-draw; animation-delay: calc(var(--d) + .3s); }
  .hx-chart + .hx-chart * { animation-delay: calc(var(--d) + 1s); }
  .hx-kootas i { animation-name: hx-grow; animation-delay: calc(var(--d) + 1.8s); }
  .hx-kootas span:nth-child(3n+2) i { animation-delay: calc(var(--d) + 2.1s); }
  .hx-kootas span:nth-child(3n) i { animation-delay: calc(var(--d) + 2.4s); }
  .hx-doc { animation-name: hx-pop; animation-delay: calc(var(--d) + .4s); }
  .hx-ring { animation-name: hx-pop; animation-delay: calc(var(--d) + 1.6s); }
  .hx-tz { animation-name: hx-pop; animation-delay: calc(var(--d) + 2.6s); }
  .hx-days .hx-cand { animation-name: hx-mark; animation-delay: calc(var(--d) + .8s); }
  .hx-days .hx-pick { animation-name: hx-pop; animation-delay: calc(var(--d) + 2s); }
  .hx-ui.hx-agreed > svg { animation-name: hx-pop; animation-delay: calc(var(--d) + .3s); }
  /* each step lights while its frame plays */
  .hx-steps li::before, .hx-n::after { animation: hx-lit 16s var(--d, 0s) infinite; }
}
@keyframes hx-frame { 0% { opacity: 0; transform: translateY(14px) scale(.97); } 3%, 22.5% { opacity: 1; transform: none; } 25%, 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes hx-prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hx-drift { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-2%, -2%); } }
@keyframes hx-pop { 0% { opacity: 0; transform: translateY(8px) scale(.95); } 2.5%, 100% { opacity: 1; transform: none; } }
@keyframes hx-grow { 0% { transform: scaleX(0); } 5%, 100% { transform: scaleX(1); } }
@keyframes hx-draw { 0% { stroke-dashoffset: 100; } 9%, 100% { stroke-dashoffset: 0; } }
@keyframes hx-mark { 0% { background: #fff; color: #111b21; border-color: #e3e6e8; } 2%, 100% { background: #d9fdd3; color: #0b6b3a; border-color: #25d366; } }
@keyframes hx-pulse { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.35); } }
@keyframes hx-lit { 0% { opacity: 0; } 2%, 23% { opacity: 1; } 25%, 100% { opacity: 0; } }

/* the price cards: a small lift on hover, and the icon of the chosen one pops (only when motion is welcome) */
@media (prefers-reduced-motion: no-preference) {
  .hx-tabs label { transition: border-color .2s, background-color .2s, transform .25s ease, box-shadow .25s ease; }
  .hx-tabs label:hover { transform: translateY(-3px); box-shadow: 0 14px 26px -18px rgba(86, 20, 32, .6); }
  .hx-tabs input:checked + label .ic { animation: hx-icon-pop .5s ease-out; }
}
@keyframes hx-icon-pop { 0% { transform: scale(.7) rotate(-14deg); } 60% { transform: scale(1.2) rotate(5deg); } 100% { transform: none; } }

/* Windows High Contrast and other forced-colour modes: the chosen tab is marked by the system's Highlight colour (its maroon fill is overridden there) */
@media (forced-colors: active) {
  .hx-tabs input:checked + label { forced-color-adjust: none; background: Highlight; border-color: Highlight; }
  .hx-tabs input:checked + label b, .hx-tabs input:checked + label small, .hx-tabs input:checked + label .ic { color: HighlightText; }
  .hx-tabs input:checked + label::after { background: Highlight; }
}

/* ==== css/guides.css ==== */
/* WP-C: guides, festivals and the free tools (Threshold Ledger, 16 Oct 2026).
   Pages: consultation-guide, kundli-matching, muhurat, puja-from-abroad, festivals, guides, birth-star, family-dates, puja-planner,
   and the home page's festival teaser (<div data-festival-teaser>, filled by js/festival-teaser.mjs).
   Uses the tokens and components in style.css (README "Design system"); every class here starts g-, fest-, leaf, hf- or sits inside .g-doc,
   so nothing leaks into the other packages' pages. The heroes' arch scenes and the earlier draft's motion in the tools and diagrams live in
   css/scenes.css (their keyframes are prefixed ga-); the drawn figures here reuse vr-draw from style.css. */

/* ---------------------------------------------------------------- guide hero: crumb, title, one italic line, lede, and the arch (css/scenes.css) */
.g-hero { padding: var(--s-7) 0 var(--s-6); }
.g-hero-in { display: grid; gap: var(--s-6); align-items: center; }
.g-hero .eyebrow a { color: inherit; text-decoration: none; }
.g-hero .eyebrow a:hover { text-decoration: underline; }
.g-hero h1 { font-size: clamp(2.25rem, 1.45rem + 3.1vw, 3.75rem); line-height: 1.04; margin-bottom: var(--s-3); max-width: 18ch; }
.g-hero .regional { margin: 0 0 var(--s-4); }
.g-hero .lede { margin: 0; }
.g-hero-compact h1 { max-width: 22ch; }   /* the consultation guide's and the tools' longer titles */
@media (min-width: 900px) {
  .g-hero { padding: var(--s-8) 0 var(--s-7); }
  .g-hero-in { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s-8); }
}
/* A drawn figure in the text (the two charts in kundli matching, the sample puja message): paper, a gold double hairline (the ledger frame
   without its knots) */
.g-fig { position: relative; margin: var(--s-6) auto; padding: var(--s-5) var(--s-4) var(--s-4); background: var(--paper); border: 1px solid var(--hair); max-width: 30rem; }
.g-fig::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--hair-2); pointer-events: none; }
.g-fig > svg { display: block; width: 100%; height: auto; font-family: var(--sans); }
.g-fig figcaption { position: relative; margin-top: var(--s-3); font-size: var(--fs-xs); line-height: 1.5; color: var(--muted); }

/* ---------------------------------------------------------------- body: lead (intro, In short), rail (price card, On this page), main */
.g-body { padding: var(--s-6) 0 var(--section); }
.g-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.g-lead, .g-main { max-width: 40rem; }
.g-lead > p:first-child { font-size: var(--fs-lede); line-height: 1.6; color: var(--ink-2); }
.g-rail { margin: var(--s-6) 0 0; }
@media (min-width: 1000px) {
  .g-grid { grid-template-columns: minmax(0, 40rem) minmax(0, 19.5rem); justify-content: space-between; column-gap: var(--s-8); }
  .g-lead { grid-column: 1; grid-row: 1; }
  .g-main { grid-column: 1; grid-row: 2; }
  .g-rail { grid-column: 2; grid-row: 1 / span 2; align-self: start; position: sticky; top: calc(var(--header-h) + var(--s-5)); margin: 0; }
}

/* "In short": three lines, a maroon rule on the left */
.tldr { margin: var(--s-5) 0 0; padding: var(--s-4) var(--s-5); background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--maroon); }
.tldr-h { margin: 0 0 var(--s-2); font: 600 var(--fs-eyebrow)/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--maroon); }
.tldr ul { margin: 0; }
.tldr li { font-size: var(--fs-small); }

/* Lists in the guides: a small gold-brown diamond instead of a dot */
.g-doc ul.g-list, .g-main ul:not([class]), .tldr ul, .g-two ul { list-style: none; padding: 0; }
.g-doc ul.g-list > li, .g-main ul:not([class]) > li, .tldr li, .g-two li { position: relative; margin: .45em 0; padding-left: 22px; }
.g-doc ul.g-list > li::before, .g-main ul:not([class]) > li::before, .tldr li::before, .g-two li::before {
  content: ""; position: absolute; left: 3px; top: .66em; width: 6px; height: 6px; border: 1px solid var(--roots); transform: rotate(45deg); }

/* The compact price card: name, price (js/guides.mjs puts the visitor's currency first), what is included, the button, the currency note */
.pcard { position: relative; padding: var(--s-5); background: var(--paper); border: 1px solid var(--hair); }
.pcard::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--hair-2); pointer-events: none; }
.pcard > * { position: relative; }
.pc-name { display: flex; align-items: center; gap: 10px; margin: 0 0 var(--s-3); font: 600 1.375rem/1.2 var(--serif); color: var(--maroon-dark); }
.pc-name .ic { color: var(--roots); }
.pc-price { margin: 0; font: 600 1.375rem/1.3 var(--serif); color: var(--ink); }
.pc-price.is-split { font: inherit; }
.pc-row + .pc-row { margin-top: var(--s-3); }
.pc-unit { margin: 6px 0 var(--s-4); font-size: var(--fs-xs); color: var(--muted); }
.pc-list { display: grid; gap: 8px; margin: 0 0 var(--s-5); padding: var(--s-4) 0 0; border-top: 1px solid var(--line); list-style: none; font-size: var(--fs-small); line-height: 1.5; }
.pc-list li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.pc-list .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--roots); }
.pc-note { margin: var(--s-3) 0 0; font-size: var(--fs-xs); line-height: 1.5; color: var(--muted); }
.pcard .btn-wa { width: 100%; }

/* On this page: chips on phones, a quiet list beside the text on wide screens */
.onpage { margin: var(--s-5) 0 0; }
.onpage-h { margin: 0 0 var(--s-2); font: 600 var(--fs-eyebrow)/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.onpage a.chip { min-height: 36px; padding: 6px 12px; color: var(--maroon-dark); font-size: var(--fs-small); text-decoration: none; white-space: normal; }
.onpage a.chip:hover { border-color: var(--maroon); color: var(--maroon); }
@media (min-width: 1000px) {
  .onpage .chip-list { flex-direction: column; gap: 0; border-left: 1px solid var(--hair); }
  .onpage a.chip { min-height: 0; padding: 5px 0 5px 14px; border: 0; background: none; }
}
.g-which { margin: var(--s-4) 0 0; font-size: var(--fs-small); }
.g-which .ic { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- main text */
.g-main > h2, .g-sec > h2 { font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.4rem); margin: var(--s-8) 0 var(--s-4); }
.g-main > h2::before, .g-sec > h2::before { content: ""; display: block; width: 34px; height: 1px; margin-bottom: var(--s-4); background: var(--gold); }
.g-main > h2:first-child { margin-top: var(--s-7); }
.g-main h3 { margin: var(--s-6) 0 var(--s-2); }
.g-main p, .g-main li { color: var(--ink); }
.g-main .fine, .g-doc .fine { color: var(--muted); }
:is(.g-main, .g-sec) h2[id], :is(.g-main, .g-sec) h3[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

/* What you need / what to send: small square cards with a line icon */
.g-need { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: var(--s-3); margin: var(--s-5) 0; padding: 0; list-style: none; }
.g-need li { display: grid; grid-template-columns: 24px 1fr; gap: 2px 12px; align-content: start; padding: var(--s-4); background: var(--paper); border: 1px solid var(--line);
             font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); }
.g-need .ic { grid-row: span 3; color: var(--roots); }
.g-need b { color: var(--maroon-dark); font-weight: 600; }
.g-need em { font-style: normal; font: 600 .7rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--maroon); }
.g-need .price-fig { margin: 4px 0; font-size: 1.5rem; }
.g-need .pc-price { font-size: 1.25rem; margin: 2px 0 4px; }

/* Steps, in the ledger frame: maroon numbered nodes */
.g-steps-box { margin: var(--s-6) 2px; }
.g-steps { counter-reset: st; }
.g-steps > li { counter-increment: st; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 0 var(--s-4); }
.g-steps > li::before { content: counter(st); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
                        background: var(--maroon); color: #fff; font: 600 .95rem/1 var(--sans); }
.g-steps h3 { margin: 4px 0 6px; font-size: 1.3rem; }
.g-steps p { margin: 0; color: var(--ink-2); }
.g-steps-note { margin: var(--s-4) 0 0; font-size: var(--fs-small); color: var(--ink-2); }

/* The 36 gunas, to scale */
.g-bars { margin: var(--s-5) 0; padding: var(--s-5); background: var(--paper); border: 1px solid var(--line); }
.g-bars [role="row"] { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 12px; margin: 0 0 12px; font-size: var(--fs-small); color: var(--ink-2); }
.g-bars strong { color: var(--maroon-dark); }
.g-bars b { font: 600 1.25rem/1 var(--serif); color: var(--maroon); }
.g-bars i { grid-column: 1 / -1; display: block; height: 6px; background: var(--maroon); transform-origin: left center; }
.g-bars .w1 { width: 12.5%; } .g-bars .w2 { width: 25%; } .g-bars .w3 { width: 37.5%; } .g-bars .w4 { width: 50%; }
.g-bars .w5 { width: 62.5%; } .g-bars .w6 { width: 75%; } .g-bars .w7 { width: 87.5%; } .g-bars .w8 { width: 100%; }
.g-bars p { margin: var(--s-4) 0 0; padding-top: var(--s-3); border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) {
  html.rv-ready .g-bars i { transition: transform .9s var(--ease); }
  html.rv-ready .g-bars.rv:not(.in) i { transform: scaleX(0); }
}

/* Can / can't */
.g-two { display: grid; gap: var(--s-3); margin: var(--s-5) 0; }
.g-two > div { padding: var(--s-5); background: var(--paper); border: 1px solid var(--line); }
.g-two > .is-no { background: transparent; border-style: dashed; border-color: var(--hair); }
.g-two h3 { margin: 0 0 var(--s-2); font-size: 1.3rem; }
.g-two ul { margin: 0; font-size: var(--fs-small); }
@media (min-width: 640px) { .g-two { grid-template-columns: 1fr 1fr; } }

/* Tables */
.g-tablewrap { margin: var(--s-5) 0; overflow-x: auto; border-top: 1px solid var(--maroon); }
.g-tablewrap[hidden] { display: none; }
.g-tablewrap table { font-size: var(--fs-small); }
.g-tablewrap th, .g-tablewrap td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); }
.g-tablewrap thead th { padding-top: 12px; font: 600 .72rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--maroon); }
.g-tablewrap tbody th { font-weight: 500; color: var(--ink); }
.g-tablewrap td strong { color: var(--maroon); font-weight: 600; }

/* Figures inside the text (diagrams drawn for the site) */
.g-figure { margin: var(--s-6) 0; padding: var(--s-5) var(--s-4) var(--s-4); background: var(--paper); border: 1px solid var(--line); }
.g-figure svg { display: block; width: 100%; height: auto; font-family: var(--sans); }
.g-figure figcaption { margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid var(--line); font-size: var(--fs-small); line-height: 1.55; color: var(--ink-2); }
.g-figure figcaption b { color: var(--maroon-dark); }
.g-figure .src { display: block; margin-top: 4px; font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 640px) {
  .g-figure { padding: var(--s-3) var(--s-3) var(--s-3); }
  .g-scroll { overflow-x: auto; }
  .g-scroll > svg { min-width: 560px; }
  .g-scroll > svg.clocks { min-width: 460px; }
}
/* A sankalp in four parts */
.g-flow { counter-reset: fl; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.g-flow li { counter-increment: fl; position: relative; padding: var(--s-3) 0 var(--s-3) 44px; border-bottom: 1px solid var(--line); font-size: var(--fs-small); color: var(--ink-2); }
.g-flow li:last-child { border-bottom: 0; }
.g-flow li::before { content: counter(fl); position: absolute; left: 0; top: var(--s-3); display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--roots);
                     border-radius: 50%; color: var(--maroon); font: 600 .85rem/1 var(--sans); }
.g-flow b { display: block; color: var(--maroon-dark); font-size: var(--fs-body); }
/* An example message a family might send */
.g-msg { margin: var(--s-5) 0; padding: var(--s-4) var(--s-5); background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--gold); }
.g-msg p { margin: 0; }
.g-msg .caption { margin-top: var(--s-2); }

/* Diagram colours: the sunrise comparison, the clocks, the tithis, the two zodiacs */
.sunrise .band { fill: var(--sand); stroke: var(--roots); stroke-dasharray: 4 4; }
.sunrise .band-t { fill: var(--roots); font: 600 13px var(--sans); }
.sunrise .city { fill: var(--maroon-dark); font: 600 22px var(--serif); }
.sunrise .axis { stroke: #cdb68a; stroke-width: 2; }
.sunrise .mid { stroke: #b59c6b; stroke-width: 1.5; }
.sunrise .day { fill: var(--muted); font-size: 13px; }
.sunrise .sun circle { fill: var(--paper); stroke: #b3a38c; stroke-width: 2; }
.sunrise .sun path { stroke: #b3a38c; stroke-width: 2; stroke-linecap: round; }
.sunrise .sun text { fill: var(--muted); font-size: 12.5px; }
.sunrise .sun.hit circle { fill: var(--saffron); stroke: #b46f0c; }
.sunrise .sun.hit path { stroke: #b46f0c; }
.sunrise .sun.hit text { fill: var(--maroon); font-weight: 600; }
.sunrise text { paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.clocks .face { fill: var(--paper); stroke: var(--roots); stroke-width: 1.6; }
.clocks .night .face { fill: var(--maroon-dark); stroke: var(--maroon-dark); }
.clocks .tk { stroke: #b59c6b; stroke-width: 1.5; }
.clocks .hh, .clocks .mh { stroke: var(--maroon-dark); stroke-width: 4; stroke-linecap: round; }
.clocks .mh { stroke-width: 2.5; }
.clocks .night .hh, .clocks .night .mh { stroke: var(--gold-soft); }
.clocks .night .tk { stroke: rgba(241, 220, 166, .55); }
.clocks .pin { fill: var(--gold); }
.clocks .c-city { fill: var(--maroon-dark); font: 600 21px var(--serif); }
.clocks .c-time { fill: var(--muted); font-size: 13.5px; }
.tithis .tt circle { fill: var(--maroon-dark); stroke: var(--roots); stroke-width: 1; }
.tithis .tt path { fill: var(--gold-soft); }
.tithis .tt.key circle { stroke: var(--maroon); stroke-width: 2.5; }
.tithis .num { fill: var(--muted); font-size: 11px; }
.tithis .nm { fill: var(--maroon-dark); font-size: 11px; font-weight: 600; }
.tithis .tt-row { fill: var(--roots); font: 600 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.ayan .ay-l { fill: var(--roots); font: 600 12.5px var(--sans); }
.ayan .tro { fill: var(--sand); stroke: #e2c98f; }
.ayan .tro.s1 { fill: var(--paper); }
.ayan .sid { fill: var(--maroon-dark); stroke: #7a3a44; }
.ayan .sid.s1 { fill: var(--maroon-deep); }
.ayan .ay-n { font: 600 15px var(--sans); fill: var(--maroon-dark); }
.ayan .sid + .ay-n { fill: var(--gold-soft); }
.ayan .gap line, .ayan .gap path { stroke: var(--maroon); stroke-width: 1.5; }
.ayan .gap text { fill: var(--maroon); font: 600 14px var(--sans); }
.ayan .sunpin line { stroke: #b46f0c; stroke-width: 2; stroke-dasharray: 5 4; }
.ayan .sunpin circle { fill: var(--saffron); stroke: #b46f0c; stroke-width: 2; }
.ayan .sunpin text { fill: var(--maroon-dark); font: 600 13px var(--sans); }

/* Facts with their sources */
.g-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: var(--s-3); margin: var(--s-6) 0 0; padding: 0; list-style: none; }
.g-facts li { padding: var(--s-5) var(--s-4) var(--s-4); background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--maroon); }
.g-facts b { display: block; font: 600 2.25rem/1 var(--serif); color: var(--maroon-dark); font-variant-numeric: lining-nums; }
.g-facts span { display: block; margin-top: var(--s-2); font-size: var(--fs-small); line-height: 1.5; color: var(--ink); }
.g-facts small { display: block; margin-top: var(--s-3); font-size: var(--fs-xs); line-height: 1.4; color: var(--muted); }
@media (min-width: 1000px) { .g-facts:has(> :nth-child(3):last-child), .g-facts:has(> :nth-child(6):last-child) { grid-template-columns: repeat(3, 1fr); } }

/* ---------------------------------------------------------------- the WhatsApp band and the "more guides" cards */
.g-cta-in { display: grid; gap: var(--s-5); align-items: center; }
.g-cta h2 { margin: 0 0 var(--s-3); font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.4rem); }
.g-cta p { margin: 0; color: var(--ink-2); max-width: var(--measure); }
.g-cta .fine { margin-top: var(--s-3); }
@media (min-width: 900px) { .g-cta-in { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s-8); } .g-cta-act { justify-self: end; } }

.g-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.g-card { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: var(--s-5); background: var(--paper); border: 1px solid var(--line); color: var(--ink);
          text-decoration: none; transition: border-color .2s, transform .25s var(--ease); }
.g-card:hover { border-color: var(--maroon); color: var(--ink); transform: translateY(-2px); }
.g-card > .ic { width: 32px; height: 32px; margin-bottom: var(--s-2); color: var(--roots); stroke-width: 1.3; }
.g-card-k { font: 600 .7rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--maroon); }
.g-card-t { font: 600 1.375rem/1.2 var(--serif); color: var(--maroon-dark); }
.g-card-d { font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); }
.g-card-go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: var(--s-3); font-weight: 500; font-size: var(--fs-small); color: var(--maroon); }
.g-card-go .ic { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.g-card:hover .g-card-go .ic { transform: translateX(3px); }
/* a card with a photograph across the top (the free tools on the guides index) */
.g-card-img { display: block; margin: calc(-1 * var(--s-5)) calc(-1 * var(--s-5)) var(--s-3); overflow: hidden; background: var(--sand); }
.g-card-img img { display: block; width: 100%; height: clamp(150px, 14vw, 190px); object-fit: cover; object-position: 50% 60%; }
.g-card-img img.at-top { object-position: 50% 30%; }
.g-more-lg { grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); }
/* five guides: three and two, the two centred under the three (auto-fit made it four and one) */
@media (min-width: 1100px) {
  .g-more-five { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .g-more-five > li { grid-column: span 2; }
  .g-more-five > li:nth-child(4) { grid-column: 2 / span 2; }
}

/* ---------------------------------------------------------------- hero figures (hf-) */
.hf-line { fill: none; stroke: var(--maroon); stroke-width: 1.4; stroke-linejoin: round; }
.hf-soft { fill: none; stroke: var(--hair); stroke-width: 1; }
.hf-gold { fill: none; stroke: var(--roots); stroke-width: 1; }
.hf-fill { fill: var(--sand); }
.hf-paper { fill: var(--paper); }
.hf-maroon { fill: var(--maroon); }
.hf-dot { fill: var(--saffron); }
.hf-track { fill: var(--line); }
.hf-bar { fill: var(--maroon); }
.hf-ring { fill: none; stroke: var(--maroon); stroke-width: 1.4; }
.hf-ring.on { fill: var(--maroon); }
.hf-t { fill: var(--ink-2); font: 500 14px var(--sans); }
.hf-s { fill: var(--muted); font: 500 12.5px var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.hf-big { fill: var(--maroon-dark); font: 600 28px var(--serif); }
.hf-mid { fill: var(--maroon-dark); font: 600 22px var(--serif); }
.hf-knot { color: var(--roots); }
.hf-tick { fill: none; stroke: var(--roots); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hf-moon { fill: var(--gold-soft); }
/* the puja guide's still: a line-art lamp and the sankalp line (a picture, nothing to press); the matching guide's faint house numbers */
.hf-still { stroke: var(--hair); stroke-width: 1; }
.hf-flame { fill: var(--saffron); stroke: #b46f0c; stroke-width: 1.2; }
.hf-sank { fill: var(--maroon-dark); font: italic 500 12.5px var(--sans); }
.hf-hn { fill: var(--muted); font: 500 10px var(--sans); opacity: .75; }
.hf-head { fill: var(--maroon-dark); }
.hf-head-t { fill: #fff7e6; font: 600 13px var(--sans); letter-spacing: .02em; }
.hf-head-s { fill: var(--gold-soft); font: 500 11.5px var(--sans); }
/* a drawn figure (.g-fig.hf-draw.rv) draws itself once (2.2s) as it scrolls into view: only with JavaScript and when motion is welcome
   (html.rv-ready, set by shell.mjs); otherwise it is simply there */
@media (prefers-reduced-motion: no-preference) {
  html.rv-ready .hf-draw.rv :is(.hf-line, .hf-ring:not(.on)) { stroke-dasharray: 1; stroke-dashoffset: 1; }
  html.rv-ready .hf-draw.rv.in :is(.hf-line, .hf-ring:not(.on)) { animation: vr-draw 2.2s cubic-bezier(.45, .05, .35, 1) .3s forwards; }
}

/* ---------------------------------------------------------------- festival calendar (festivals.html) and the home teaser */
.fest-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: var(--s-4) 0 var(--s-3); }
.fest-pick[hidden] { display: none; }
.fest-pick .fest-sep { width: 1px; height: 26px; margin: 0 4px; background: var(--hair); }
.fest-pick button.chip { font-weight: 500; }
.fest-pick button.chip[aria-pressed="false"] { color: var(--maroon-dark); }
.fest-for { margin: 0 0 var(--s-4); font-size: var(--fs-small); color: var(--ink-2); max-width: var(--measure); }
.fest-period h3 { margin: var(--s-6) 0 var(--s-2); }
.fest-leaves { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(10rem, 100%), 1fr)); gap: var(--s-3); margin: var(--s-4) 0 var(--s-5); padding: 0; list-style: none; }
.fest-leaves[hidden] { display: none; }
.leaf { position: relative; display: flex; flex-direction: column; min-width: 0; padding: var(--s-4) var(--s-4) var(--s-3); background: var(--paper);
        border: 1px solid var(--line); border-top: 2px solid var(--maroon); }
.leaf-date { display: flex; align-items: baseline; gap: 6px; }
.leaf-date b { font: 600 2.4rem/1 var(--serif); color: var(--maroon-dark); font-variant-numeric: lining-nums; }
.leaf-date span { font: 600 var(--fs-eyebrow)/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--maroon); }
.leaf-wd { font-size: var(--fs-xs); color: var(--muted); }
.leaf-name { margin-top: var(--s-2); font-weight: 500; line-height: 1.3; color: var(--ink); }
.leaf-india { margin-top: var(--s-2); padding-top: var(--s-2); border-top: 1px dashed var(--hair); font-size: var(--fs-xs); font-weight: 500; color: var(--maroon); }
.leaf-note { margin-top: 6px; font-size: var(--fs-xs); line-height: 1.45; color: var(--muted); }
.leaf.is-past { background: transparent; border-top-color: var(--line); }
.leaf.is-past .leaf-date b, .leaf.is-past .leaf-name { color: var(--muted); }
.leaf.is-past::after, .leaf.is-next::after { position: absolute; top: 10px; right: 10px; padding: 2px 7px; border: 1px solid var(--hair); font: 600 .66rem/1.3 var(--sans);
                                             letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.leaf.is-past::after { content: "Past"; }
.leaf.is-next { border-color: var(--maroon); box-shadow: var(--shadow-1); }
.leaf.is-next::after { content: "Next"; border-color: var(--maroon); background: var(--maroon); color: #fff; }
.fest-table[data-region="us"] :is(th, td):nth-child(2), .fest-table[data-region="au"] :is(th, td):nth-child(3), .fest-table[data-region="in"] :is(th, td):nth-child(4) { background: var(--sand); }
.fest-table td { white-space: nowrap; }
.fest-table tbody th { min-width: 11rem; }
/* the home page teaser: three leaves in a row, also on phones */
.fest-leaves-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: var(--s-4) 0; }
.fest-leaves-3 .leaf-name { font-size: var(--fs-small); }
.fest-leaves-3 .leaf-name { overflow-wrap: normal; hyphens: manual; }
@media (max-width: 559px) {
  .fest-leaves-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
  .fest-leaves-3 > .leaf:nth-child(3):last-child { grid-column: 1 / -1; }
  .fest-leaves-3 .leaf { padding: var(--s-3) 12px; }
  .fest-leaves-3 .leaf-date b { font-size: 2rem; }
}
.fest-more { margin: 0; font-size: var(--fs-small); }
.fest-hero-moons { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-2); }

/* ---------------------------------------------------------------- free tools: the form panel and the results (ids and classes the tool scripts use) */
.g-howto { counter-reset: hw; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr)); gap: var(--s-3); margin: 0 0 var(--s-6); padding: 0; list-style: none; }
.g-howto li { counter-increment: hw; position: relative; padding: var(--s-3) var(--s-4) var(--s-3) 56px; background: var(--paper); border: 1px solid var(--line); font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); }
.g-howto li::before { content: counter(hw); position: absolute; left: var(--s-4); top: var(--s-3); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
                      background: var(--maroon); color: #fff; font: 600 .85rem/1 var(--sans); }
.g-howto b { display: block; color: var(--maroon-dark); }

.g-toolwrap { padding-bottom: var(--section); }
/* The tool pages: the text (and, on family dates and the puja planner, the tool) beside a sticky "On this page" list, as on the guides. The list
   is for wide screens; a chip for a section that only exists once the tool has run stays out until then. */
.g-toolwrap .g-rail { display: none; }
@media (min-width: 1000px) {
  .g-toolwrap .g-rail { display: block; grid-row: 1; }
  .g-toolwrap .g-main { grid-row: 1; }
}
.g-main:has(#tool[hidden]) ~ .g-rail li[data-needs="tool"],
.g-main:has(#results[hidden]) ~ .g-rail li[data-needs="results"],
.g-main:has(#plan[hidden]) ~ .g-rail li[data-needs="plan"] { display: none; }
.g-tool { position: relative; margin: 0 0 var(--s-6); padding: var(--s-5); background: var(--paper); border: 1px solid var(--hair); }
.g-tool::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--hair-2); pointer-events: none; }
.g-tool > * { position: relative; }
.g-tool[hidden] { display: none; }
@media (min-width: 760px) { .g-tool { padding: var(--s-6); } }
.g-doc .f { display: block; margin: var(--s-4) 0 6px; font-weight: 600; color: var(--maroon-dark); }
.g-doc .g-tool :is(input[type=text], input[type=date], input[type=time], select, textarea) {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #8f7756; border-radius: var(--r); background: #fff; color: var(--ink); font: inherit; }
.g-doc .g-tool :is(input, select, textarea):focus-visible { outline: 2px solid var(--maroon); outline-offset: 1px; }
.g-doc .g-tool textarea { resize: vertical; }
.g-doc .g-tool fieldset { min-width: 0; margin: var(--s-4) 0 0; padding: 0; border: 0; }
.g-doc .g-tool legend { margin-bottom: 6px; padding: 0; font-weight: 600; color: var(--maroon-dark); }
.g-doc .row2 { display: grid; gap: 0 var(--s-4); }
@media (min-width: 640px) { .g-doc .row2 { grid-template-columns: 1fr 1fr; } }
.g-doc .hint { margin: 6px 0 0; font-size: var(--fs-small); font-weight: 400; color: var(--muted); }
.g-doc .err { min-height: 1em; margin: var(--s-4) 0 var(--s-3); color: #a3261b; }
.g-doc .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.g-doc .seg label { position: relative; display: inline-flex; cursor: pointer; }
.g-doc .seg input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.g-doc .seg label > span { display: inline-block; padding: 8px 14px; border: 1px solid #8f7756; border-radius: var(--r); background: #fff; font-size: var(--fs-small); color: var(--ink); }
.g-doc .seg label:hover > span { border-color: var(--maroon); }
.g-doc .seg input:checked + span { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.g-doc .seg input:focus-visible + span { outline: 2px solid var(--maroon); outline-offset: 2px; }
.g-doc .tool-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: var(--s-4) 0 0; }
.g-doc .linkbtn { padding: 0; border: 0; background: none; color: var(--maroon); font: inherit; font-size: var(--fs-small); text-decoration: underline; cursor: pointer; }
.g-noscript { padding: var(--s-4) var(--s-5); background: var(--paper); border: 1px solid var(--line); }
.g-doc details:not(.faq details) { margin: var(--s-4) 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.g-doc details:not(.faq details) > summary { padding: 14px 0; cursor: pointer; font-weight: 500; color: var(--maroon-dark); }
.g-doc details:not(.faq details) > :not(summary) { margin-bottom: var(--s-4); }
.g-results h2 { margin-top: var(--s-6); font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.4rem); }
/* birth star: the form beside the wheel */
/* The two cards share one frame (the form card's gold line and inner hairline) and, until a result makes the form taller than the wheel, one
   height, with the form centred in its card; with a result showing, the wheel stays beside it, sticky. */
.g-star-grid { display: grid; gap: var(--s-6); align-items: start; }
.g-star-grid .g-tool { margin: 0; }
.g-star-grid .wheel-box { position: relative; padding: var(--s-5); background: var(--paper); border: 1px solid var(--hair); }
.g-star-grid .wheel-box::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--hair-2); pointer-events: none; }
.g-star-grid .wheel-box > * { position: relative; }
@media (min-width: 760px) { .g-star-grid .wheel-box { padding: var(--s-6); } }
@media (min-width: 900px) {
  .g-star-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .g-star-grid .wheel-box { position: sticky; top: calc(var(--header-h) + 20px); }
  .g-star-grid:not(:has(#out:not([hidden]))) { align-items: stretch; }
  .g-star-grid:not(:has(#out:not([hidden]))) .g-tool:not([hidden]) { display: flex; flex-direction: column; justify-content: center; }
}
.wheel-box { margin: 0; text-align: center; }
.wheel-box figcaption { margin-top: var(--s-3); font-size: var(--fs-small); color: var(--ink-2); }
#moonnext { color: var(--maroon); font-weight: 600; }
#out h2 { margin: var(--s-5) 0 var(--s-3); font-size: 1.75rem; }
#out .big { font-size: 1.3rem; color: var(--maroon); }
table.star th { width: 42%; text-align: left; font-weight: 500; color: var(--ink-2); }
table.star th, table.star td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
#card { display: block; width: 100%; max-width: 420px; height: auto; margin: var(--s-5) auto 0; box-shadow: var(--shadow-1); }
#cardbox .tool-actions { justify-content: center; }
.nakwheel { display: block; width: 100%; max-width: 540px; height: auto; margin: 0 auto; font-family: var(--sans); }
.nakwheel .n path { fill: #fff; stroke: #e2c98f; stroke-width: 1; transition: fill .4s; }
.nakwheel .n:nth-child(even) path { fill: var(--paper); }
.nakwheel .n text { fill: var(--maroon-dark); font-size: 12.5px; font-weight: 500; }
.nakwheel .n.mine path { fill: var(--maroon); }
.nakwheel .n.mine text { fill: #fff7e6; font-weight: 600; }
.nakwheel .r path { fill: var(--maroon-dark); stroke: #7a3a44; }
.nakwheel .r:nth-child(odd) path { fill: var(--maroon-deep); }
.nakwheel .r text { fill: var(--gold-soft); font-size: 13px; letter-spacing: .04em; }
.nakwheel .padas { stroke: #d9bf86; stroke-width: 1; }
.nakwheel .inner { fill: var(--cream); stroke: #e2c98f; }
.nakwheel .orbit { fill: none; stroke: #d9bf86; stroke-width: 1.5; stroke-dasharray: 2 7; stroke-linecap: round; }
.nakwheel .halo { fill: none; stroke: var(--gold); stroke-opacity: .45; stroke-width: 2; }
.nakwheel .hub { fill: var(--maroon-deep); stroke: var(--gold); stroke-width: 1.5; }
.nakwheel .hub-t { fill: #fff7e6; font: 600 24px var(--serif); }
.nakwheel .hub-s { fill: var(--gold-soft); font: 600 20px var(--serif); }
.nakwheel .pointer { fill: var(--gold); stroke: var(--maroon-dark); stroke-width: 1.5; }
.nakwheel .mark circle { fill: #fff7e6; stroke: var(--gold); stroke-width: 3; }
.nakwheel .mark.now circle { fill: var(--green); stroke: #fff; stroke-width: 2; }
svg [hidden] { display: none; }
/* the script sets rot-K (K = 0-26) on the dial so nakshatra K+1 sits centred under the pointer */
#wheeldial { transform-box: view-box; transform-origin: 300px 300px; transition: transform 1.6s cubic-bezier(.3, .7, .2, 1); }
.rot-0 { transform: rotate(-6.667deg); } .rot-1 { transform: rotate(-20deg); } .rot-2 { transform: rotate(-33.333deg); }
.rot-3 { transform: rotate(-46.667deg); } .rot-4 { transform: rotate(-60deg); } .rot-5 { transform: rotate(-73.333deg); }
.rot-6 { transform: rotate(-86.667deg); } .rot-7 { transform: rotate(-100deg); } .rot-8 { transform: rotate(-113.333deg); }
.rot-9 { transform: rotate(-126.667deg); } .rot-10 { transform: rotate(-140deg); } .rot-11 { transform: rotate(-153.333deg); }
.rot-12 { transform: rotate(-166.667deg); } .rot-13 { transform: rotate(-180deg); } .rot-14 { transform: rotate(-193.333deg); }
.rot-15 { transform: rotate(-206.667deg); } .rot-16 { transform: rotate(-220deg); } .rot-17 { transform: rotate(-233.333deg); }
.rot-18 { transform: rotate(-246.667deg); } .rot-19 { transform: rotate(-260deg); } .rot-20 { transform: rotate(-273.333deg); }
.rot-21 { transform: rotate(-286.667deg); } .rot-22 { transform: rotate(-300deg); } .rot-23 { transform: rotate(-313.333deg); }
.rot-24 { transform: rotate(-326.667deg); } .rot-25 { transform: rotate(-340deg); } .rot-26 { transform: rotate(-353.333deg); }
table.naks { font-size: var(--fs-small); }
table.naks small { color: var(--muted); }
@media (max-width: 640px) { .naks th:nth-child(1), .naks td:nth-child(1), .naks th:nth-child(5), .naks td:nth-child(5) { display: none; } }
/* family dates: today where you live, the family list */
.g-today { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-4); align-items: center; margin: 0 0 var(--s-5); padding: var(--s-4) var(--s-5);
           background: var(--maroon-dark); color: #ead9c0; }
.g-today[hidden] { display: none; }
.g-today svg { width: 60px; height: 60px; }
.g-today svg circle { fill: var(--maroon-deep); stroke: var(--gold); }
.g-today svg path { fill: var(--gold-soft); }
.g-today-h { display: block; font: 600 var(--fs-eyebrow)/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.g-today dl { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 4px 0 0; }
.g-today dt { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #d9c4a6; }
.g-today dd { margin: 0; font: 600 1.25rem/1.2 var(--serif); color: #fff7e6; }
.g-today small { display: block; margin-top: 4px; color: #d9c4a6; font-size: var(--fs-xs); }
.fam { margin: var(--s-4) 0; padding: var(--s-5) var(--s-5) var(--s-3); background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--maroon); }
.fam-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); }
.fam h3 { margin: 0; }
.fam h4 { margin: var(--s-4) 0 4px; color: var(--maroon-dark); }
.fam .meta { margin: 4px 0 0; font-size: var(--fs-small); color: var(--muted); }
.fam ul.dates { margin: 6px 0 8px; padding: 0; list-style: none; }
.fam ul.dates li { padding: 10px 0 4px; border-top: 1px solid var(--line); }
.fam ul.dates strong { font-size: 1.1rem; }
.fam .alt { margin: 4px 0; font-size: var(--fs-small); color: var(--muted); }
.g-doc .fam details { margin: 8px 0; border: 0; }
.g-doc .fam details > summary { padding: 4px 0; font-size: var(--fs-small); }
/* puja planner: the times, the samagri checklist, mantras, the ask box, sources */
.g-doc .when { margin: var(--s-3) 0 0; padding: var(--s-4) var(--s-5); background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--maroon); }
.g-doc .when h3 { margin: 0 0 var(--s-2); font-size: 1.3rem; }
.g-doc .when dl { display: grid; grid-template-columns: minmax(150px, max-content) 1fr; gap: 6px 18px; margin: 0; }
.g-doc .when dt { font-weight: 600; color: var(--maroon-dark); }
.g-doc .when dd { margin: 0; }
.g-doc .when .alt, .g-doc .g-tool > .alt { margin: 10px 0 0; font-size: var(--fs-small); color: var(--muted); }
@media (max-width: 640px) { .g-doc .when dl { grid-template-columns: 1fr; gap: 2px; } .g-doc .when dd { margin-bottom: 8px; } }
.checklist { display: grid; gap: var(--s-2); margin: var(--s-4) 0; padding: 0; list-style: none; }
.checklist li { padding: var(--s-3) var(--s-4); background: var(--paper); border: 1px solid var(--line); font-size: var(--fs-small); line-height: 1.5; color: var(--muted); }
.checklist label { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: 600; font-size: var(--fs-body); color: var(--ink); }
.checklist input { flex: none; width: 18px; height: 18px; margin-top: 4px; accent-color: var(--maroon); }
.checklist label:has(input:checked) span { text-decoration: line-through; color: var(--muted); }
.checklist .more, .checklist .abroad { margin-top: 2px; padding-left: 28px; }
.checklist .abroad { color: var(--roots); }
.checklist label .ref { line-height: 1.3; margin-top: 3px; }
a.ref { margin-left: 2px; font-size: .8rem; line-height: 0; vertical-align: super; text-decoration: none; }
.g-doc ol.steps { margin: var(--s-4) 0; padding-left: 1.4em; }
.g-doc ol.steps > li { padding: var(--s-2) 0; }
.g-doc ol.steps > li > b { display: block; color: var(--maroon-dark); font-size: 1.05rem; }
.mantra { margin: var(--s-3) 0 6px; padding: var(--s-3) var(--s-4); background: var(--paper); border-left: 3px solid var(--gold); }
.mantra p { margin: 4px 0; font-size: var(--fs-small); }
.mantra .deva { color: var(--maroon-dark); font-size: 1.1rem; line-height: 1.7; }
.mantra .iast { font-style: italic; }
.g-doc details.said { margin: var(--s-2) 0 0; border: 0; }
.g-doc details.said > summary { padding: 4px 0; font-size: var(--fs-small); color: var(--muted); }
details.said p { font-size: var(--fs-small); }
#answer { margin-top: var(--s-4); }
#answer .ask-cta { padding: var(--s-3) var(--s-4); background: #eef8f1; border: 1px solid #bfe3c9; }
ol.sources { font-size: var(--fs-small); color: var(--muted); }
ol.sources li { margin: 4px 0; }
.g-ask { margin: var(--s-6) 0; }
.g-ask h2 { margin-top: 0; font-size: 1.75rem; }
.g-events { margin: var(--s-4) 0 0; font-size: var(--fs-small); line-height: 1.6; color: var(--muted); max-width: var(--measure); }
.g-checks { display: grid; gap: 0; margin: var(--s-5) 0; padding: 0; list-style: none; border-top: 1px solid var(--hair); }
.g-checks li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s-3); padding: var(--s-4) 0; border-bottom: 1px solid var(--hair); }
.g-checks .ic { color: var(--roots); margin-top: 1px; }
.g-checks strong { color: var(--maroon-dark); }
/* guides index: the question chips under the title (the photo in the arch beside them is in css/scenes.css) */
.g-asks { margin-top: var(--s-5); }
.g-asks a.chip { min-height: 36px; padding: 6px 12px; color: var(--maroon-dark); font-size: var(--fs-small); text-decoration: none; white-space: normal; }
.g-asks a.chip:hover { border-color: var(--maroon); color: var(--maroon); }
.g-tools-line { margin: var(--s-4) 0 0; font-size: var(--fs-small); color: var(--ink-2); }
.g-tools-line b { color: var(--maroon-dark); font-weight: 600; }
.g-sec .section-head h2::before { display: none; }
.g-sec .g-which { margin-top: var(--s-6); }
.g-star-grid { margin-bottom: var(--s-7); }

/* ==== css/home.css ==== */
/* Home page (WP-B, "Threshold Ledger", 16 Oct 2026). Every class here starts with .hm so it can't collide with the other page packages.
   Uses the tokens and components in style.css (site/README.md "Design system"). Motion (all of it only when motion is welcome; otherwise each
   piece shows its settled picture, and the top bar's "Pause motion" button does the same): the hero's example WhatsApp chat and journey tracker,
   the starry arch and the turning wheel, the occasions ribbon, the closing arch's turning photos, and the services explorer (explorer.css).
   Photos are the site's own WebP files, lazy below the fold. Nothing here is hidden without JavaScript. */

/* ---------------------------------------------------------------- hero */
.hm-hero { padding: var(--s-6) 0 var(--s-8); overflow: hidden; }
.hm-hero-grid { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "art"; }
.hm-copy { grid-area: copy; }
.hm-copy h1 { margin-bottom: var(--s-4); }
.hm-copy h1 em { display: block; }
/* The meaning of the name, set like a dictionary entry: the word and where it is used on one line, the meaning under it, a gold rule down the side */
.hm-defn { max-width: 34rem; margin: 0 0 var(--s-5); padding: 2px 0 2px var(--s-4); border-left: 2px solid var(--gold); }
.hm-defn dt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; font: italic 600 1.9rem/1.1 var(--serif); letter-spacing: -.01em; color: var(--maroon); }
.hm-defn dt small { display: inline-flex; align-items: center; gap: 8px; font: 500 .7rem/1 var(--sans); font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: var(--roots); }
.hm-defn dt small::before { content: ""; flex: none; width: 5px; height: 5px; border: 1px solid var(--gold); transform: rotate(45deg); }
.hm-defn dd { margin: 6px 0 0; font: 400 1.32rem/1.4 var(--serif); color: var(--ink-2); text-wrap: pretty; }
.hm-copy .lede { margin-bottom: var(--s-5); }
.hm-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hm-actions .btn { flex: 1 1 15rem; }
.hm-assure { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: var(--s-4) 0 0; padding: 0; list-style: none; font-size: var(--fs-xs); color: var(--muted); }
.hm-assure li { display: inline-flex; align-items: center; gap: 8px; }
.hm-assure li::before { content: ""; flex: none; width: 6px; height: 6px; border: 1px solid var(--roots); transform: rotate(45deg); }

/* The hero animation (the earlier draft's, restored 16 Oct 2026 at the owner's request): a WhatsApp chat plays one booking from the first
   question to the muhurat, then starts again, while the tracker below lights Ask, Book, Pay and Receive in step. The phone stands in the temple
   arch, which opens on a starry night, with the wheel turning slowly behind. With reduced motion everything shows its settled frame. */
.hm-art { grid-area: art; position: relative; min-width: 0; }
.hm-stage { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; width: min(440px, 100%); margin: 0 auto; }
.hm-door { position: absolute; z-index: -1; top: 0; left: 50%; width: 500px; aspect-ratio: 400 / 540; transform: translateX(-50%); }
.hm-door::before { content: ""; position: absolute; z-index: -2; inset: -10% -24% 10%; border-radius: 50%;
                   background: radial-gradient(circle at 50% 42%, rgba(246, 183, 60, .26), rgba(246, 183, 60, .07) 42%, transparent 66%); }
.hm-wheel { position: absolute; z-index: -1; left: 50%; top: 37.6%; width: 640px; height: 640px; max-width: none; margin: -320px 0 0 -320px; opacity: .3;
            -webkit-mask-image: radial-gradient(circle, #000 40%, transparent 70%); mask-image: radial-gradient(circle, #000 40%, transparent 70%); }
.hm-arch { position: relative; display: block; width: 100%; height: 100%; }
/* the arch's window (k-arch, viewBox 400 x 540: x 34 to 366, from y 37 down to the threshold band at y 420): a night sky with stars */
.hm-night { position: absolute; left: 8.5%; right: 8.5%; top: 6.85%; bottom: 22.2%; overflow: hidden; border-radius: 50% 50% 0 0 / 43.3% 43.3% 0 0;
            background: radial-gradient(ellipse at 50% 112%, #5a1622, transparent 68%), linear-gradient(#170a0d, #2b1016 72%); }
.hm-night::before, .hm-night::after { content: ""; position: absolute; inset: 0; }
.hm-night::before { background: url(/img/stars2.svg) 12px 6px; opacity: .85; }
.hm-night::after { background: radial-gradient(circle at 20% 18%, #f1dca6 0 1.2px, transparent 2.4px), radial-gradient(circle at 76% 13%, #f1dca6 0 1.2px, transparent 2.4px),
                               radial-gradient(circle at 88% 34%, #f1dca6 0 1px, transparent 2px), radial-gradient(circle at 12% 40%, #f1dca6 0 1px, transparent 2px),
                               radial-gradient(circle at 56% 7%, #fff7e6 0 1.4px, transparent 2.8px), radial-gradient(circle at 34% 9%, #f1dca6 0 .9px, transparent 1.8px); }
/* (three classes: this must win over the ported phone rule below, which sets margin: 0) */
.hm-art .hm-stage .phone { z-index: 1; margin-top: 136px; }
.hm-stage .journey { list-style: none; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; max-width: 380px; margin: 26px 0 0; padding: 0; }
.hm-stage .journey::before, .hm-stage .journey::after { content: ""; position: absolute; top: 6px; left: 12.5%; height: 2px; border-radius: 2px; }
.hm-stage .journey::before { right: 12.5%; background: var(--hair-2); }
.hm-stage .journey::after { width: 0; max-width: 75%; background: linear-gradient(90deg, var(--gold), var(--maroon)); }
.hm-stage .journey li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted);
                        font: 500 var(--fs-xs)/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.hm-stage .journey li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--hair); background: var(--cream); }
.hm-stage .journey .j1 { color: var(--maroon); }
.hm-stage .journey .j1::before { background: var(--maroon); border-color: var(--maroon); box-shadow: 0 0 0 5px rgba(122, 31, 43, .14); }
.hm-stage .example { margin: 14px 0 0; font-size: var(--fs-xs); color: var(--muted); text-align: center; }

.hm-stage .msg { margin: 0; max-width: 88%; padding: 7px 11px; border-radius: 12px; font-size: .86rem; line-height: 1.45; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.hm-stage .msg.in { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 0; }
.hm-stage .msg.out { align-self: flex-start; background: #fff; border-top-left-radius: 0; }
/* bubble tails, and the time with blue ticks on what the customer sent */
.hm-stage .msg { position: relative; }
.hm-stage .msg::before { content: ""; position: absolute; top: 0; width: 8px; height: 10px; background: inherit; }
.hm-stage .msg.in::before { right: -7px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.hm-stage .msg.out::before { left: -7px; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.hm-stage .thread .msg::after { float: right; margin: 5px -3px -3px 10px; color: #667781; font-size: .6rem; line-height: 1; }
.hm-stage .thread .msg.in::after { padding-right: 18px; background: url(/img/ticks.svg) right center / 15px no-repeat; }
.hm-stage .thread .quote::after, .hm-stage .thread .delivered::after { align-self: flex-end; margin: 0 -3px -2px; }
.hm-stage .thread .typing .msg::after { content: none; }
.hm-stage .m1 .msg::after { content: "9:41"; }
.hm-stage .m2 .msg::after { content: "9:41"; }
.hm-stage .m3 .msg::after { content: "9:42"; }
.hm-stage .m4 .msg::after { content: "9:42"; }
.hm-stage .m6 .msg::after { content: "9:44"; }
.hm-stage .m8 .msg::after { content: "10:15"; }
.hm-stage .m9 .msg::after { content: "10:16"; }
.hm-stage .phone { position: relative; margin: 0; width: 292px; height: 580px; padding: 9px; border-radius: 46px; background: linear-gradient(150deg, #4a3a33, #120a0b 55%, #2c2220); box-shadow: 0 0 0 1px rgba(212,167,74,.45), 0 0 0 7px rgba(212,167,74,.07), 0 50px 90px -30px rgba(0,0,0,.95); }
.hm-stage .phone::before { content: ""; position: absolute; z-index: 2; top: 17px; left: 50%; width: 86px; height: 24px; margin-left: -43px; border-radius: 14px; background: #0b0607; }
.hm-stage .screen { height: 100%; border-radius: 38px; overflow: hidden; display: flex; flex-direction: column; background: #efeae2 url(/img/pattern.svg); color: #111b21; }
.hm-stage .wa-head { display: flex; align-items: center; gap: 8px; padding: 46px 10px 10px 6px; background: #008069; color: #fff; }
.hm-stage .wa-head > div { flex: 1; min-width: 0; }
.hm-stage .wa-head .acts { display: flex; gap: 12px; }
.hm-stage .wa-head .acts svg { width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hm-stage .wa-head .acts svg:last-child { width: 16px; fill: #fff; margin-left: -4px; }
.hm-stage .wa-head .back { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hm-stage .wa-head img { background: #fff; border-radius: 50%; padding: 2px; }
.hm-stage .wa-head strong { display: block; font-size: .95rem; line-height: 1.2; }
.hm-stage .status { display: grid; font-size: .72rem; opacity: .85; }
.hm-stage .status > span { grid-area: 1 / 1; }
.hm-stage .st-online { animation: hc-st-online 26s linear infinite; }
.hm-stage .st-typing { opacity: 0; animation: hc-st-typing 26s linear infinite; }
.hm-stage .thread { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 10px 10px; }
.hm-stage .thread .m { display: flex; flex-direction: column; flex: none; overflow: hidden; margin-top: 8px; transform-origin: bottom; animation-duration: 26s; animation-timing-function: ease-out; animation-iteration-count: infinite; }
.hm-stage .thread .msg { font-size: .8rem; max-width: 86%; }
.hm-stage .thread .typing .msg { display: flex; gap: 4px; padding: 10px 12px; }
.hm-stage .typing i { width: 7px; height: 7px; border-radius: 50%; background: #9aa19d; animation: hc-dot 1s ease-in-out infinite; }
.hm-stage .typing i:nth-child(2) { animation-delay: .15s; }
.hm-stage .typing i:nth-child(3) { animation-delay: .3s; }
.hm-stage .sys { align-self: center; margin: 2px 0; padding: 4px 12px; border-radius: 8px; background: #fff; color: #54656f; font-size: .7rem; box-shadow: 0 1px 0 rgba(11,20,26,.1); }
.hm-stage .sys.ok { background: #ffeecd; color: #54656f; font-weight: 600; }
.hm-stage .quote, .hm-stage .delivered { display: flex; flex-direction: column; gap: 5px; }
.hm-stage .quote strong { color: #111b21; font-size: .86rem; }
.hm-stage .quote > span:not(.pay) { color: #667781; font-size: .75rem; line-height: 1.4; }
.hm-stage .quote .amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-top: 2px; }
.hm-stage .quote .amount s { color: #9c8f80; font-size: .8rem; }
.hm-stage .quote .amount b { color: var(--ink); font-size: 1.05rem; }
.hm-stage .quote .amount em { font-style: normal; font-size: .68rem; font-weight: 600; color: #7a5a14; background: #f8e7b4; border-radius: 6px; padding: 1px 6px; }
.hm-stage .pay { position: relative; display: grid; place-items: center; margin: 4px -11px 0; padding: 9px; border-top: 1px solid #e9edef; background: #fff; color: #008069; font-weight: 600; font-size: .82rem; animation: hc-press 26s linear infinite; }
.hm-stage .pay > span { grid-area: 1 / 1; }
.hm-stage .paid-a { animation: hc-paid-a 26s linear infinite; }
.hm-stage .paid-b { opacity: 0; animation: hc-paid-b 26s linear infinite; }
.hm-stage .tap { position: absolute; width: 46px; height: 46px; left: 50%; top: 50%; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(0,128,105,.25); opacity: 0; animation: hc-tap 26s ease-out infinite; }
.hm-stage .quote small { font-size: .66rem; color: #667781; text-align: center; }
.hm-stage .delivered { font-size: .78rem; }
.hm-stage .delivered .file { display: flex; align-items: center; gap: 8px; padding: 8px; margin-bottom: 3px; border-radius: 8px; background: #f0f2f5; }
.hm-stage .delivered .file svg { flex: none; width: 30px; height: 30px; padding: 5px; border-radius: 6px; background: #e5533d; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.hm-stage .delivered .file span { display: flex; flex-direction: column; font-size: .7rem; color: #667781; line-height: 1.3; }
.hm-stage .delivered .file b { color: #111b21; font-size: .78rem; }
.hm-stage .wa-input { display: flex; align-items: center; gap: 6px; padding: 6px 8px 16px; }
.hm-stage .wa-input span { flex: 1; display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 20px; padding: 7px 10px; color: #8696a0; font-size: .8rem; }
.hm-stage .wa-input span svg { width: 18px; height: 18px; fill: none; stroke: #8696a0; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hm-stage .wa-input span svg:nth-of-type(2) { margin-left: auto; }
.hm-stage .wa-input i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #00a884; }
.hm-stage .wa-input i svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; }

@media (prefers-reduced-motion: no-preference) {
  .hm-night::before { animation: hm-twinkle 4.5s ease-in-out infinite alternate; }
  .hm-wheel { animation: hm-spin 200s linear infinite; }
  .hm-stage .journey::after { animation: hc-fill 26s linear infinite; }
  .hm-stage .journey .j2 { animation: hc-j2 26s linear infinite; } .hm-stage .journey .j2::before { animation: hc-j2-dot 26s linear infinite; }
  .hm-stage .journey .j3 { animation: hc-j3 26s linear infinite; } .hm-stage .journey .j3::before { animation: hc-j3-dot 26s linear infinite; }
  .hm-stage .journey .j4 { animation: hc-j4 26s linear infinite; } .hm-stage .journey .j4::before { animation: hc-j4-dot 26s linear infinite; }
}
/* settled frame: the whole conversation, every step lit, no typing bubbles */
@media (prefers-reduced-motion: reduce) {
  .hm-stage .thread .typing, .hm-stage .st-typing, .hm-stage .paid-b, .hm-stage .tap { display: none; }
  .hm-stage .journey::after { width: 75%; }
  .hm-stage .journey li { color: var(--maroon); }
  .hm-stage .journey li::before { background: var(--maroon); border-color: var(--maroon); }
}
@keyframes hc-dot { 50% { transform: translateY(-3px); opacity: .5; } }
@keyframes hc-m1 { 0%, 2.3% { max-height: 0; opacity: 0; margin-top: 0; transform: translateY(10px) scale(.97); } 4.0%, 92% { max-height: 320px; opacity: 1; margin-top: 8px; transform: none; } 97%, 100% { max-height: 320px; opacity: 0; margin-top: 8px; } }
.hm-stage .thread .m1 { animation-name: hc-m1; }
@keyframes hc-t1 { 0%, 5.4% { max-height: 0; opacity: 0; margin-top: 0; transform: translateY(10px) scale(.97); } 6.5%, 11.0% { max-height: 320px; opacity: 1; margin-top: 8px; transform: none; } 11.5%, 100% { max-height: 0; opacity: 0; margin-top: 0; transform: translateY(10px) scale(.97); } }
.hm-stage .thread .t1 { animation-name: hc-t1; }
@keyframes hc-m2 { 0%, 11.5% { max-height: 0; opacity: 0; margin-top: 0; transform: translateY(10px) scale(.97); } 13.3%, 92% { max-height: 320px; opacity: 1; margin-top: 8px; transform: none; } 97%, 100% { max-height: 320px; opacity: 0; margin-top: 8px; } }
.hm-stage .thread .m2 { animation-name: hc-m2; }
@keyframes hc-m3 { 0%, 20.8% { max-height: 0; opacity: 0; margin-top: 0; transform: translateY(10px) scale(.97); } 22.5%, 92% { max-height: 320px; opacity: 1; margin-top: 8px; transform: none; } 97%, 100% { max-height: 320px; opacity: 0; margin-top: 8px; } }
.hm-stage .thread .m3 { animation-name: hc-m3; }
@keyframes hc-t2 { 0%, 23.8% { max-height: 0; opacity: 0; margin-top: 0; transform: translateY(10px) scale(.97); } 25.0%, 29.4% { max-height: 320px; opacity: 1; margin-top: 8px; transform: none; } 30.0%, 100% { max-height: 0; opacity: 0; margin-top: 0; transform: translateY(10px) scale(.97); } }
.hm-stage .thread .t2 { animation-name: hc-t2; }
@keyframes hc-m4 { 0%, 30.0% { max-height: 0; opacity: 0; margin-top: 0; transform: translateY(10px) scale(.97); } 31.7%, 92% { max-height: 320px; opacity: 1; margin-top: 8px; transform: none; } 97%, 100% { max-height: 320px; opacity: 0; margin-top: 8px; } }
.hm-stage .thread .m4 { animation-name: hc-m4; }
@keyframes hc-m5 { 0%, 42.3% { max-height: 0; opacity: 0; margin-top: 0; transform: translateY(10px) scale(.97); } 44.0%, 92% { max-height: 320px; opacity: 1; margin-top: 8px; transform: none; } 97%, 100% { max-height: 320px; opacity: 0; margin-top: 8px; } }
.hm-stage .thread .m5 { animation-name: hc-m5; }
@keyframes hc-t3 { 0%, 45.4% { max-height: 0; opacity: 0; margin-top: 0; transform: translateY(10px) scale(.97); } 46.5%, 50.2% { max-height: 320px; opacity: 1; margin-top: 8px; transform: none; } 50.8%, 100% { max-height: 0; opacity: 0; margin-top: 0; transform: translateY(10px) scale(.97); } }
.hm-stage .thread .t3 { animation-name: hc-t3; }
@keyframes hc-m6 { 0%, 50.8% { max-height: 0; opacity: 0; margin-top: 0; transform: translateY(10px) scale(.97); } 52.5%, 92% { max-height: 320px; opacity: 1; margin-top: 8px; transform: none; } 97%, 100% { max-height: 320px; opacity: 0; margin-top: 8px; } }
.hm-stage .thread .m6 { animation-name: hc-m6; }
@keyframes hc-m7 { 0%, 59.2% { max-height: 0; opacity: 0; margin-top: 0; transform: translateY(10px) scale(.97); } 61.0%, 92% { max-height: 320px; opacity: 1; margin-top: 8px; transform: none; } 97%, 100% { max-height: 320px; opacity: 0; margin-top: 8px; } }
.hm-stage .thread .m7 { animation-name: hc-m7; }
@keyframes hc-t4 { 0%, 60.8% { max-height: 0; opacity: 0; margin-top: 0; transform: translateY(10px) scale(.97); } 61.9%, 65.6% { max-height: 320px; opacity: 1; margin-top: 8px; transform: none; } 66.2%, 100% { max-height: 0; opacity: 0; margin-top: 0; transform: translateY(10px) scale(.97); } }
.hm-stage .thread .t4 { animation-name: hc-t4; }
@keyframes hc-m8 { 0%, 66.2% { max-height: 0; opacity: 0; margin-top: 0; transform: translateY(10px) scale(.97); } 67.9%, 92% { max-height: 320px; opacity: 1; margin-top: 8px; transform: none; } 97%, 100% { max-height: 320px; opacity: 0; margin-top: 8px; } }
.hm-stage .thread .m8 { animation-name: hc-m8; }
@keyframes hc-m9 { 0%, 76.2% { max-height: 0; opacity: 0; margin-top: 0; transform: translateY(10px) scale(.97); } 77.9%, 92% { max-height: 320px; opacity: 1; margin-top: 8px; transform: none; } 97%, 100% { max-height: 320px; opacity: 0; margin-top: 8px; } }
.hm-stage .thread .m9 { animation-name: hc-m9; }
@keyframes hc-st-typing { 0% { opacity: 0; } 5.4% { opacity: 0; } 5.8%, 11.2% { opacity: 1; } 11.5% { opacity: 0; } 23.8% { opacity: 0; } 24.2%, 29.6% { opacity: 1; } 30.0% { opacity: 0; } 45.4% { opacity: 0; } 45.8%, 50.4% { opacity: 1; } 50.8% { opacity: 0; } 60.8% { opacity: 0; } 61.2%, 65.8% { opacity: 1; } 66.2% { opacity: 0; } 100% { opacity: 0; } }
@keyframes hc-st-online { 0% { opacity: 1; } 5.4% { opacity: 1; } 5.8%, 11.2% { opacity: 0; } 11.5% { opacity: 1; } 23.8% { opacity: 1; } 24.2%, 29.6% { opacity: 0; } 30.0% { opacity: 1; } 45.4% { opacity: 1; } 45.8%, 50.4% { opacity: 0; } 50.8% { opacity: 1; } 60.8% { opacity: 1; } 61.2%, 65.8% { opacity: 0; } 66.2% { opacity: 1; } 100% { opacity: 1; } }
@keyframes hc-tap { 0%, 38.1% { opacity: 0; transform: scale(.2); } 38.8% { opacity: .9; transform: scale(.5); } 41.5%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes hc-press { 0%, 38.7% { transform: none; filter: none; } 39.4% { transform: scale(.94); filter: brightness(.9); } 40.4%, 100% { transform: none; filter: none; } }
@keyframes hc-paid-a { 0%, 40.8% { opacity: 1; } 41.5%, 92% { opacity: 0; } 100% { opacity: 1; } }
@keyframes hc-paid-b { 0%, 40.8% { opacity: 0; } 41.5%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hc-fill { 0% { width: 0; } 30.0% { width: 33.3%; } 39.2% { width: 66.6%; } 50.8%, 92% { width: 100%; } 97%, 100% { width: 0; } }
@keyframes hc-j2 { 0%, 30.0% { color: #6b5d4f; } 31.2%, 92% { color: #7a1f2b; } 97%, 100% { color: #6b5d4f; } }
@keyframes hc-j2-dot { 0%, 30.0% { background: #fbf5ea; border-color: rgba(154,106,31,.42); box-shadow: none; } 31.2%, 92% { background: #7a1f2b; border-color: #7a1f2b; box-shadow: 0 0 0 5px rgba(122,31,43,.14); } 97%, 100% { background: #fbf5ea; border-color: rgba(154,106,31,.42); box-shadow: none; } }
@keyframes hc-j3 { 0%, 39.2% { color: #6b5d4f; } 40.4%, 92% { color: #7a1f2b; } 97%, 100% { color: #6b5d4f; } }
@keyframes hc-j3-dot { 0%, 39.2% { background: #fbf5ea; border-color: rgba(154,106,31,.42); box-shadow: none; } 40.4%, 92% { background: #7a1f2b; border-color: #7a1f2b; box-shadow: 0 0 0 5px rgba(122,31,43,.14); } 97%, 100% { background: #fbf5ea; border-color: rgba(154,106,31,.42); box-shadow: none; } }
@keyframes hc-j4 { 0%, 50.8% { color: #6b5d4f; } 51.9%, 92% { color: #7a1f2b; } 97%, 100% { color: #6b5d4f; } }
@keyframes hc-j4-dot { 0%, 50.8% { background: #fbf5ea; border-color: rgba(154,106,31,.42); box-shadow: none; } 51.9%, 92% { background: #7a1f2b; border-color: #7a1f2b; box-shadow: 0 0 0 5px rgba(122,31,43,.14); } 97%, 100% { background: #fbf5ea; border-color: rgba(154,106,31,.42); box-shadow: none; } }
@keyframes hm-twinkle { from { opacity: .3; } to { opacity: 1; } }

@media (min-width: 560px) {
  .hm-actions .btn { flex: 0 0 auto; }
}
@media (min-width: 1000px) {
  .hm-hero { padding: var(--s-8) 0 var(--s-8); }
  .hm-hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); grid-template-areas: "copy art"; gap: var(--s-6) 56px; align-items: center; }
}

/* ---------------------------------------------------------------- the overview video: a poster with a play button until it is pressed (js/watch.mjs) */
.hm-watch { padding: var(--s-7) 0; }
.hm-watch-grid { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "fig" "more"; align-items: start; }
.hm-watch-top { grid-area: top; }
.hm-watch-top h2 { margin-bottom: var(--s-3); }
.hm-watch-top h2 em { color: var(--maroon); }
.hm-watch-top .lede { margin: 0; max-width: 36rem; }
.hm-watch-fig { grid-area: fig; margin: 0; width: min(100%, 360px); }
.hm-watch-fig figcaption { margin-top: var(--s-2); font-size: var(--fs-xs); color: var(--muted); }
.hm-watch-card, .hm-watch-player { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; background: var(--maroon-deep); border: 1px solid var(--hair); box-shadow: var(--shadow-1); }
.hm-watch-player { height: auto; object-fit: cover; }
.hm-watch-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hm-watch-card::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(212, 167, 74, .5); pointer-events: none; }
.hm-watch-play { position: absolute; left: 50%; top: 67%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--cream); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); transition: transform .2s ease; }
.hm-watch-play::before { content: ""; position: absolute; left: 31px; top: 24px; width: 24px; height: 28px; background: var(--maroon); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.hm-watch-card:hover .hm-watch-play, .hm-watch-card:focus-visible .hm-watch-play { transform: scale(1.08); }
.hm-watch-len { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); padding: 7px 16px; border-radius: 999px; background: rgba(23, 10, 13, .62); color: var(--cream); font: 500 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.hm-watch-more { grid-area: more; }
.hm-watch-in { margin: 0 0 var(--s-2); font: 500 .72rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--roots); }
.hm-watch-list { display: grid; gap: 8px; margin: 0 0 var(--s-5); padding: 0; list-style: none; }
.hm-watch-list li { display: flex; align-items: baseline; gap: 10px; }
.hm-watch-list li::before { content: ""; flex: none; width: 6px; height: 6px; border: 1px solid var(--roots); transform: translateY(-2px) rotate(45deg); }
@media (min-width: 900px) {
  .hm-watch { padding: var(--s-8) 0; }
  .hm-watch-grid { grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "top fig" "more fig"; gap: var(--s-5) 72px; }
  .hm-watch-fig { width: 100%; }
}

/* ---------------------------------------------------------------- six things you can check (the trust ledger) */
.hm-trust { padding-top: var(--s-7); }
.hm-ledger-head { display: grid; gap: var(--s-4); margin-bottom: var(--s-5); }
.hm-ledger-head h2 { margin: 0; }
.hm-ledger-head > p { margin: 0; color: var(--ink-2); max-width: 30rem; }
.hm-crest { display: block; width: 120px; height: auto; margin: -8px auto 0; }
.hm-six > li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 var(--s-3); align-content: start; }
.hm-six > li > * { grid-column: 2; }
.hm-six > li > .ic { grid-column: 1; grid-row: 1 / span 4; margin-top: 2px; }
.hm-six h3 { margin-bottom: 6px; }
.hm-six p { margin: 0; font-size: var(--fs-small); line-height: 1.55; color: var(--ink-2); }
.hm-six .hm-cin { margin-top: 6px; }
.hm-six .check-line { color: var(--muted); }
.hm-below { margin: var(--s-4) 0 var(--s-2); padding: var(--s-4) max(0px, calc(100% - 52rem)) 0 0; border-top: 1px solid var(--hair); font-size: var(--fs-xs); line-height: 1.6; color: var(--muted); }
@media (min-width: 760px) {
  .hm-six { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-six > li { padding: var(--s-5) var(--s-5) var(--s-5) 0; border-top: 1px solid var(--hair) !important; }
  .hm-six > li:nth-child(even) { padding-left: var(--s-5); padding-right: 0; border-left: 1px solid var(--hair); }
  /* titles, texts and check lines line up across each row, however many lines a title takes */
  @supports (grid-template-rows: subgrid) {
    .hm-six > li { grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
    .hm-six > li > h3 { grid-row: 1; }
    .hm-six > li > .hm-body { grid-row: 2; }
    .hm-six > li > .hm-cin { grid-row: 3; }
    .hm-six > li > .check-line { grid-row: 4; }
  }
}
@media (min-width: 900px) {
  .hm-ledger-head { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "crest head" "crest line"; align-items: center; gap: var(--s-2) var(--s-6); margin-bottom: var(--s-6); }
  .hm-crest { grid-area: crest; width: 112px; margin: 0; }
  .hm-ledger-head > div { grid-area: head; align-self: end; }
  .hm-ledger-head > p { grid-area: line; align-self: start; }
}
@media (min-width: 1100px) {
  .hm-six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm-six > li, .hm-six > li:nth-child(even) { padding: var(--s-5) var(--s-6); border-left: 1px solid var(--hair); }
  .hm-six > li:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
  .hm-six > li:nth-child(3n) { padding-right: 0; }
}

/* ---------------------------------------------------------------- services and prices */
.hm-svc-head { display: grid; gap: var(--s-4); margin-bottom: var(--s-6); }
.hm-svc-head h2 { margin-bottom: var(--s-3); }
.hm-svc-intro { margin: 0; color: var(--ink-2); max-width: var(--measure); }
.hm-cur-wrap { display: flex; flex-direction: column; gap: var(--s-2); }
.hm-cur { display: inline-flex; gap: 6px; }
.hm-cur[hidden] { display: none; }
.hm-cur .chip { min-width: 56px; justify-content: center; font-variant-numeric: tabular-nums; }
.hm-cur-note { margin: 0; font-size: var(--fs-xs); color: var(--muted); max-width: 24rem; }
.hm-price-all[hidden] { display: none; }
.hm-price-all { display: block; font: 600 1rem/1.35 var(--sans); color: var(--ink); }
.hm-offer { margin: var(--s-5) 0 0; font-size: var(--fs-small); color: var(--ink-2); }
.hm-offer b { color: var(--maroon-dark); }
@media (min-width: 900px) {
  .hm-svc-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--s-7); }
  .hm-cur-wrap { align-items: flex-end; text-align: right; }
}

/* ---------------------------------------------------------------- festivals teaser, "not sure" card, free tools */
.hm-more .section-head { margin-bottom: var(--s-5); }
.hm-fest-grid { display: grid; gap: var(--s-5); }
.hm-fest-pic { margin: 0; aspect-ratio: 2 / 1; overflow: hidden; border: 1px solid var(--hair); background: var(--cream); }
.hm-arch-photo { justify-self: center; width: min(300px, 100%); aspect-ratio: 4 / 5; border-radius: 999px 999px 4px 4px; border: 2px solid rgba(212, 167, 74, .85);
                 outline: 1px solid rgba(212, 167, 74, .4); outline-offset: 8px; box-shadow: 0 30px 60px -30px rgba(63, 15, 24, .55); }
.hm-fest-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
@media (min-width: 900px) {
  .hm-fest-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: var(--s-6); align-items: center; }
  .hm-fest-pic:not(.hm-arch-photo) { aspect-ratio: 4 / 3; }
}
/* the lotus divider: a gold lotus between two hairlines */
.hm-lotus { display: flex; align-items: center; gap: var(--s-4); margin: 0 0 var(--s-6); }
.hm-lotus::before, .hm-lotus::after { content: ""; flex: 1 1 0; height: 1px; background: linear-gradient(90deg, transparent, var(--hair)); }
.hm-lotus::after { background: linear-gradient(90deg, var(--hair), transparent); }
.hm-lotus img { width: 64px; height: 36px; }
.hm-fest > p { margin: 0; color: var(--ink-2); max-width: var(--measure); }
.hm-fest-more { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); margin: var(--s-5) 0 var(--s-7); }
.hm-unsure { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s-3) var(--s-4); align-items: start; padding: var(--s-5) 20px; }
.hm-unsure h3 { margin-bottom: 6px; }
.hm-unsure p { margin: 0; font-size: var(--fs-small); color: var(--ink-2); }
.hm-unsure .btn { grid-column: 1 / -1; }
.hm-tools { margin: var(--s-5) 0 0; font-size: var(--fs-small); color: var(--ink-2); }
.hm-toolsec .section-head { margin-bottom: var(--s-6); }
.hm-tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.hm-tool { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
           color: var(--ink); text-decoration: none; transition: border-color .2s; }
.hm-tool:hover { border-color: var(--maroon); color: var(--ink); }
.hm-tool img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.hm-tool img.hm-tool-top { object-position: 50% 0; }
.hm-tool-body { display: flex; flex-direction: column; gap: 4px; padding: var(--s-3) var(--s-3) var(--s-4); }
.hm-tool-body b { font: 600 1.25rem/1.15 var(--serif); color: var(--maroon-dark); }
.hm-tool-body span { font-size: var(--fs-xs); line-height: 1.45; color: var(--ink-2); }
@media (min-width: 900px) {
  .hm-tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
  .hm-tool-body { padding: var(--s-4) var(--s-4) var(--s-5); }
  .hm-tool-body b { font-size: 1.4rem; }
}
@media (min-width: 760px) {
  .hm-unsure { grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; padding: var(--s-5) var(--s-6); }
  .hm-unsure .btn { grid-column: auto; }
}

/* ---------------------------------------------------------------- FAQ */
.hm-faq-grid { display: grid; gap: var(--s-5); }
.hm-faq-intro { margin: 0; color: var(--ink-2); font-size: var(--fs-small); }
@media (min-width: 900px) { .hm-faq-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--s-8); } }

/* ---------------------------------------------------------------- closing call to action */
.hm-cta-in { text-align: center; }
.hm-cta-in .eyebrow { justify-content: center; }
.hm-cta-kolam { width: 112px; height: 112px; margin: 0 auto var(--s-5); color: var(--roots); }
.hm-cta-alt { margin: var(--s-4) auto 0; max-width: 32rem; font-size: var(--fs-small); color: var(--ink-2); }

/* ---------------------------------------------------------------- phones: keep the page short (about 8 screens)
   Order on every screen: hero (with the arch photo), the services explorer (price cards that are also its tabs), then the six checks. On phones
   each check is its heading plus its CHECK line. */
@media (max-width: 699px) {
  .hm-hero { padding-top: var(--s-5); }
  .hm-door { width: min(360px, 100%); }
  .hm-art .hm-stage .phone { width: 268px; height: 540px; margin-top: 92px; }
  .hm-occ li { font-size: 1.25rem; }
  .hm-copy .lede { font-size: 1.05rem; }
  .hm-svc-head { margin-bottom: var(--s-4); }
  .hm-offer { margin-top: var(--s-4); }
  .hm-six > li { grid-template-columns: 32px minmax(0, 1fr); padding: var(--s-4) 0; }
  .hm-six .hm-body { display: none; }
  .hm-six h3 { font-size: 1.3rem; }
  .hm-six > li > .ic { width: 28px; height: 28px; }
  .hm-six .check-line { margin-top: 4px; }
  .hm-ledger-head { margin-bottom: var(--s-2); }
  .hm-fest-more { margin-bottom: var(--s-6); }
  .hm-cta-kolam { width: 80px; height: 80px; margin-bottom: var(--s-4); }
}

@keyframes hm-spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- the occasions band (from the earlier draft): a slow ribbon of the occasions
   we help with, written twice so the loop has no seam; it pauses under the pointer and stands still (wrapped) when motion is reduced */
.hm-occ { overflow: hidden; padding: var(--s-4) 0; border-top: 1px solid var(--hair-2); border-bottom: 1px solid var(--hair-2); background: var(--cream);
          -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.hm-occ ul { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; }
.hm-occ:hover ul { animation-play-state: paused; }
.hm-occ li { display: flex; align-items: center; white-space: nowrap; font: italic 600 1.45rem/1.2 var(--serif); color: var(--maroon-dark); }
.hm-occ li::after { content: ""; width: 28px; height: 16px; margin: 0 26px; background: url(/img/lotus.svg) center / contain no-repeat; }
@media (prefers-reduced-motion: no-preference) { .hm-occ ul { animation: hm-marquee 80s linear infinite; } }
@media (prefers-reduced-motion: reduce) {
  .hm-occ { -webkit-mask-image: none; mask-image: none; }
  .hm-occ ul { flex-wrap: wrap; width: auto; justify-content: center; padding: 0 var(--gutter); }
  .hm-occ li[aria-hidden] { display: none; }
}
@keyframes hm-marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- closing section: the five services turning in an arch (the earlier draft's
   "loop"), each photo with its caption for four seconds; without motion the first one simply stays */
.hm-cta-grid { display: grid; gap: var(--s-6); justify-items: center; }
.hm-loop { margin: 0; width: min(260px, 72%); text-align: center; }
.hm-loop-arch { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px 4px 4px; background: var(--maroon-deep);
                border: 2px solid rgba(212, 167, 74, .85); outline: 1px solid rgba(212, 167, 74, .4); outline-offset: 8px; box-shadow: 0 30px 60px -30px rgba(63, 15, 24, .55); }
.hm-loop-arch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-loop-cap { display: grid; margin-top: var(--s-5); }
.hm-loop-cap p { grid-area: 1 / 1; margin: 0; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); }
.hm-loop-cap b { display: block; margin-bottom: 4px; font: 600 1.45rem/1.15 var(--serif); color: var(--maroon-dark); }
.hm-loop-dots { display: flex; justify-content: center; gap: 8px; margin-top: var(--s-3); }
.hm-loop-dots i { width: 7px; height: 7px; border-radius: 99px; background: rgba(122, 31, 43, .22); }
.hm-loop-dots i:first-child { width: 20px; background: var(--gold); }
/* a quiet note, not a heading: the photos show the services; they are not photos of a customer's booking (owner asked 18 Oct 2026 whether it is needed: kept, made small) */
.hm-loop-arch img:not(:first-child), .hm-loop-cap p:not(:first-child) { opacity: 0; }
@media (max-width: 899px) { .hm-cta-kolam { display: none; } }
.hm-fest-grid { margin-bottom: var(--s-5); }
@media (min-width: 900px) {
  .hm-cta-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: var(--s-8); max-width: 66rem; margin: 0 auto; }
  .hm-loop { width: min(320px, 100%); }
}
@media (prefers-reduced-motion: no-preference) {
  .hm-loop-arch img { animation: hm-loop-img 20s linear infinite both; }
  .hm-loop-cap p { animation: hm-loop-cap 20s ease infinite both; }
  .hm-loop-dots i { animation: hm-loop-dot 20s ease infinite both; }
  .hm-loop-arch img:nth-child(2), .hm-loop-cap p:nth-child(2), .hm-loop-dots i:nth-child(2) { animation-delay: -16s; }
  .hm-loop-arch img:nth-child(3), .hm-loop-cap p:nth-child(3), .hm-loop-dots i:nth-child(3) { animation-delay: -12s; }
  .hm-loop-arch img:nth-child(4), .hm-loop-cap p:nth-child(4), .hm-loop-dots i:nth-child(4) { animation-delay: -8s; }
  .hm-loop-arch img:nth-child(5), .hm-loop-cap p:nth-child(5), .hm-loop-dots i:nth-child(5) { animation-delay: -4s; }
}
@keyframes hm-loop-img { 0% { opacity: 0; transform: scale(1.1); } 3%, 23% { opacity: 1; } 26% { opacity: 0; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes hm-loop-cap { 0%, 2.5% { opacity: 0; transform: translateY(10px); } 6%, 18% { opacity: 1; transform: none; } 20%, 100% { opacity: 0; } }
@keyframes hm-loop-dot { 0%, 19% { width: 20px; background: #d4a74a; } 21%, 100% { width: 7px; background: rgba(122, 31, 43, .22); } }

/* ==== css/pages.css ==== */
/* pages.css (work package D, 16 Oct 2026): the selector (src/_selector.html, on /which-service and the home page), the trust pages (about,
   contact), the forms (message-us, apply), the long-form policies (refunds, delivery, terms, privacy, disclaimer), partners and the store
   placeholder. Built on the tokens and components in style.css (site/README.md "Design system"); every class here starts with pg- or sel-
   so nothing reaches another package's pages. Motion: the shared .k-draw kolam, the open-dot breathing, the partners clocks and, on /which-service, the decision path (.pg-path). */

/* /contact: the two live clocks under the desk status (guides.mjs turns the hands and fills the words each minute; without JavaScript they are left out) */
.pg-clocks-live { margin: var(--s-4) 0 var(--s-3); }
html:not(.js) .pg-clocks-live { display: none; }
.pg-clocks-live svg { display: block; width: 100%; max-width: 360px; height: auto; }
.pg-clocks-live .ck-name { fill: var(--ink-2); font: 500 13px/1 var(--sans); text-anchor: middle; }
.pg-clocks-live figcaption { margin-top: var(--s-2); font-size: var(--fs-small); color: var(--ink-2); }

/* /which-service: the decision path beside the heading. The lines are drawn once (.k-draw), then each service lights in turn */
@media (min-width: 900px) {
  .pg-head-path .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: center; gap: var(--s-7); }
}
.pg-path { display: none; width: 100%; height: auto; color: var(--maroon); }
@media (min-width: 900px) { .pg-path { display: block; } }
.pg-path .pp-line { fill: none; stroke: var(--roots); stroke-width: 1.4; stroke-linecap: round; }
.pg-path .pp-start { fill: var(--maroon); }
.pg-path .pp-q { fill: #fff7e6; font: 600 15px/1 var(--serif); text-anchor: middle; }
.pg-path .pp-node circle { fill: var(--paper); stroke: var(--maroon); stroke-width: 1.4; }
.pg-path .pp-node use { fill: none; stroke: var(--maroon); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pg-path .pp-node text { fill: var(--ink-2); font: 500 11px/1 var(--sans); text-anchor: middle; }
@media (prefers-reduced-motion: no-preference) {
  .pg-path .pp-node { animation: pp-light 12s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .pg-path .pp-n2 { animation-delay: 3s; } .pg-path .pp-n3 { animation-delay: 6s; } .pg-path .pp-n4 { animation-delay: 9s; }
}
@keyframes pp-light { 0%, 22%, 100% { transform: none; } 6%, 14% { transform: translateY(-5px) scale(1.08); } }

/* An element with the hidden attribute stays hidden even where a rule below gives it a display */
:is(.sel, .pg-form-grid, .pg-lf) [hidden], .pg-panel[hidden], .pg-form[hidden] { display: none !important; }

/* ================================================================ page head and sections */
.pg-head { padding: var(--s-7) 0 var(--s-6); }
@media (min-width: 900px) { .pg-head { padding: var(--s-8) 0 var(--s-7); } }
.pg-head h1 { max-width: 18ch; margin-bottom: var(--s-4); font-size: clamp(2.4rem, 1.7rem + 3.2vw, 4.25rem); }
.pg-head .lede { margin-bottom: 0; }
.pg-head .eyebrow a { color: inherit; text-decoration-color: var(--gold); }
.pg-head .eyebrow .chip { letter-spacing: .14em; }
.pg-head .fine { margin: var(--s-4) 0 0; }
.pg-updated { margin: var(--s-4) 0 0; font-size: var(--fs-xs); color: var(--muted); }
.pg-head-crest { display: grid; gap: var(--s-6); align-items: center; }
.pg-crest { display: none; width: 200px; height: 200px; color: var(--roots); opacity: .9; }
@media (min-width: 900px) {
  .pg-head-crest { grid-template-columns: minmax(0, 1fr) 220px; }
  .pg-crest { display: block; justify-self: end; }
}
.pg-acts { margin: var(--s-5) 0 0; }

.pg-sec { padding: 0 0 var(--s-8); }
:is(.section-sand, .threshold) + .pg-sec { padding-top: var(--s-8); }
.pg-sec-last { padding-bottom: var(--section); }
.pg-after { margin: var(--s-5) 0 0; }

/* heading on the left, text on the right (from 900px) */
.pg-split { display: grid; gap: var(--s-5); }
.pg-split > :first-child > :last-child { margin-bottom: 0; }
@media (min-width: 900px) { .pg-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: var(--s-8); } }
/* two equal columns (from 960px) */
.pg-duo { display: grid; gap: var(--s-7); }
@media (min-width: 960px) { .pg-duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); align-items: stretch; } }
/* contact: the details card is as tall as the desk column beside it (its corner knots already line up with the column's top and bottom); its rows share the extra height */
@media (min-width: 960px) {
  .pg-duo > .ledger.pg-legal { display: flex; flex-direction: column; }
  .pg-duo > .ledger.pg-legal > .pg-dl { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
}
.pg-duo-text h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.3rem); }
.pg-duo-text > div > :last-child { margin-bottom: 0; }

/* A list with a small gold-and-maroon tick before each line */
.pg-ticks, .pg-mini-ticks { list-style: none; margin: 0 0 1em; padding: 0; }
.pg-ticks > li, .pg-mini-ticks > li { position: relative; padding-left: 30px; margin: 0 0 var(--s-3); }
.pg-ticks > li::before, .pg-mini-ticks > li::before { content: ""; position: absolute; left: 3px; top: .38em; width: 12px; height: 7px;
  border-left: 1.6px solid var(--maroon); border-bottom: 1.6px solid var(--maroon); transform: rotate(-45deg); }
.pg-mini-ticks > li { font-size: var(--fs-small); }

/* "In short" box: paper, a gold double hairline */
.pg-short { position: relative; margin: 0 0 var(--s-6); padding: var(--s-5); background: var(--paper); border: 1px solid var(--hair); }
.pg-short::before { content: ""; position: absolute; inset: 5px; border: 1px solid var(--hair-2); pointer-events: none; }
.pg-short p { position: relative; margin: 0; font-size: 1.0625rem; line-height: 1.6; color: var(--ink); }

/* Numbered steps on a maroon thread */
.pg-steps { list-style: none; margin: 0; padding: 0; counter-reset: pg-step; }
.pg-steps > li { position: relative; padding: 0 0 var(--s-6) 56px; counter-increment: pg-step; }
.pg-steps > li:last-child { padding-bottom: 0; }
.pg-steps > li::before { content: counter(pg-step); position: absolute; left: 0; top: -3px; display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50%; background: var(--maroon); color: #fff; font: 600 .95rem/1 var(--sans); }
.pg-steps > li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 40px; bottom: 6px; width: 1px; background: var(--hair); }
.pg-steps h3 { margin: 0 0 6px; font-size: 1.375rem; }
.pg-steps p { margin: 0; color: var(--ink-2); }

/* Service or partner tiles with an icon */
.pg-svcs { display: grid; gap: var(--s-4); margin: 0; padding: 0; list-style: none; }
.pg-svcs > li { padding: var(--s-5); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.pg-svcs .ic-lg { display: block; margin-bottom: var(--s-3); color: var(--maroon); }
.pg-svcs h3 { margin: 0 0 var(--s-2); }
.pg-svcs p { margin: 0; font-size: var(--fs-small); color: var(--ink-2); }
.pg-svcs-cta { margin: var(--s-5) 0 0; }
@media (min-width: 640px) { .pg-svcs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pg-svcs { grid-template-columns: repeat(4, minmax(0, 1fr)); } .pg-svcs-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* A definition list in rows: label, then value */
.pg-dl { margin: 0; }
.pg-dl > div { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--hair-2); }
.pg-dl > div:first-child { border-top: 0; }
.pg-dl dt { font: 500 var(--fs-xs)/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pg-dl dd { margin: 0; color: var(--ink); }
@media (min-width: 560px) { .pg-dl > div { grid-template-columns: 11rem minmax(0, 1fr); gap: var(--s-4); align-items: baseline; } }

/* ================================================================ long-form pages (refunds, delivery, terms, privacy, disclaimer) */
/* Phones: a scrolling row of contents chips above the text. From 1100px: a sticky contents list on the left, the text at a readable measure. */
.pg-lf { display: grid; gap: var(--s-5); padding-bottom: var(--section); }
.pg-toc { min-width: 0; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
.pg-toc-h { margin: 0 0 var(--s-2); font: 500 var(--fs-eyebrow)/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--maroon); }
.pg-toc ol { display: flex; gap: 8px; margin: 0; padding: 0 0 8px; list-style: none; overflow-x: auto; scrollbar-width: thin;
             -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }   /* the fade says "scroll for more" */
.pg-toc li { flex: none; }
.pg-toc a { display: inline-block; padding: 7px 12px; border: 1px solid var(--hair); border-radius: var(--r); background: var(--paper); color: var(--maroon-dark);
            font-size: var(--fs-xs); line-height: 1.3; text-decoration: none; white-space: nowrap; }
.pg-toc a:hover { border-color: var(--maroon); }
@media (min-width: 1100px) {
  .pg-lf { grid-template-columns: 15rem minmax(0, var(--measure)); gap: var(--s-8); align-items: start; }
  .pg-toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); margin: 0; padding: 0; overflow-y: auto; }
  .pg-toc ol { display: block; padding: 0; border-left: 1px solid var(--hair); overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .pg-toc a { display: block; padding: 7px 0 7px 16px; border: 0; background: none; color: var(--ink-2); font-size: var(--fs-small); white-space: normal; }
  .pg-toc a:hover { color: var(--maroon); box-shadow: inset 2px 0 0 var(--maroon); }
}
.pg-body { min-width: 0; max-width: var(--measure); }
.pg-body > h2 { margin: var(--s-7) 0 var(--s-4); padding-top: var(--s-5); border-top: 1px solid var(--hair); font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); }
.pg-body > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.pg-body h3 { margin: 1.4em 0 .3em; }
.pg-body ul, .pg-body ol { padding-left: 1.3em; }
.pg-body li { margin: .4em 0; }
.pg-body li::marker { color: var(--roots); }
.pg-body table { margin: var(--s-4) 0 var(--s-5); font-size: var(--fs-small); background: var(--paper); border: 1px solid var(--line); }
.pg-body th, .pg-body td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.pg-body tr:last-child > * { border-bottom: 0; }
.pg-body tr:first-child > th { background: var(--sand); color: var(--maroon-dark); font: 600 var(--fs-xs)/1.35 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.pg-body td + td { color: var(--ink); }
/* the three refund tables split their columns at the same place */
.pg-refunds table { table-layout: fixed; }
.pg-refunds tr:first-child > th:first-child { width: 58%; }
.pg-body :is(h2, h3) { scroll-margin-top: calc(var(--header-h) + 24px); }
@media (max-width: 479px) { .pg-body th, .pg-body td { padding: 10px; } }

/* ================================================================ contact */
.pg-channels { display: grid; gap: var(--s-4); margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .pg-channels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pg-channel { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-2); padding: var(--s-5); background: var(--paper); border: 1px solid var(--line);
              border-top: 2px solid var(--maroon); border-radius: var(--r); }
.pg-channel .ic-lg { color: var(--maroon); }
.pg-channel h3 { margin: var(--s-2) 0 0; }
.pg-channel p { margin: 0; font-size: var(--fs-small); color: var(--ink-2); }
.pg-channel .pg-channel-v { font-size: 1.0625rem; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.pg-channel > .btn { margin-top: auto; }
.pg-channel > p:last-of-type { margin-bottom: var(--s-4); }

/* The reply card on /contact: a photo across the top, the desk status line and the reply times */
.pg-desk { padding: var(--s-5); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
@media (min-width: 760px) { .pg-desk { padding: var(--s-6); } }
.pg-desk h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.3rem); }
.pg-photo { margin: calc(-1 * var(--s-5)) calc(-1 * var(--s-5)) var(--s-5); }
@media (min-width: 760px) { .pg-photo { margin: calc(-1 * var(--s-6)) calc(-1 * var(--s-6)) var(--s-5); } }
.pg-photo img { display: block; width: 100%; height: clamp(140px, 22vw, 200px); object-fit: cover; object-position: 50% 70%; background: var(--sand); }
.pg-desk .pg-ticks { margin: var(--s-4) 0 0; font-size: var(--fs-small); }
.pg-desk .pg-ticks > li:last-child { margin-bottom: 0; }

/* The legal card (a ledger frame): name, CIN chip, registered office, email */
.ledger.pg-legal, .ledger.pg-entity, .ledger.pg-rules { margin-top: 19px; }
.pg-legal h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.3rem); }
.pg-legal-note { margin: var(--s-4) 0 0; padding-top: var(--s-4); border-top: 1px solid var(--hair-2); font-size: var(--fs-small); color: var(--ink-2); }

/* ================================================================ about */
@media (min-width: 900px) { .pg-entity { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: var(--s-7); } }
.pg-entity-head > :last-child { margin-bottom: 0; }
.pg-principles { display: grid; gap: var(--s-6); }
@media (min-width: 860px) { .pg-principles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-8); } }
.pg-principle { padding-top: var(--s-5); border-top: 1px solid var(--hair); }
.pg-principle .ic-lg { display: block; margin-bottom: var(--s-3); color: var(--maroon); }
.pg-principle p { margin: 0; color: var(--ink-2); }
.pg-links { display: grid; gap: 0 var(--s-7); margin: 0; padding: 0; list-style: none; }
.pg-links li { padding: 12px 0; border-top: 1px solid var(--hair-2); }
@media (min-width: 760px) { .pg-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ================================================================ forms (message-us, apply): forms.mjs keeps every id and name */
.pg-form-grid { display: grid; gap: var(--s-6); padding-bottom: var(--section); }
@media (min-width: 1000px) { .pg-form-grid { grid-template-columns: minmax(0, 1fr) 19rem; gap: var(--s-7); align-items: start; } }
.pg-form-main { min-width: 0; max-width: 46rem; }
.pg-form, .pg-panel { padding: var(--s-5) var(--s-4); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
@media (min-width: 640px) { .pg-form, .pg-panel { padding: var(--s-6); } }
.pg-panel { margin: 0 0 var(--s-5); }
.pg-panel > :last-child, .pg-panel > div > :last-child { margin-bottom: 0; }
.pg-done .ic-lg { display: block; margin-bottom: var(--s-3); color: var(--green); }
.pg-done h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.3rem); }
#done-h:focus { outline: none; }

.pg-form form > .f:first-child { margin-top: 0; }
.pg-form .f, .pg-form legend { display: block; margin: var(--s-5) 0 6px; padding: 0; font: 500 var(--fs-small)/1.35 var(--sans); color: var(--ink); }
.pg-form input:not([type="checkbox"]):not([type="radio"]), .pg-form select, .pg-form textarea {
  display: block; width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #8a7a66; border-radius: var(--r); background: #fff;
  color: var(--ink); font-size: 1rem; line-height: 1.4; }
.pg-form ::placeholder { color: var(--muted); opacity: 1; }
.pg-form :is(input, select, textarea):focus-visible { outline: 2px solid var(--maroon); outline-offset: 1px; border-color: var(--maroon); }
.pg-form :is(input, select, textarea, .opts), #closed, #done-h { scroll-margin-top: calc(var(--header-h) + 24px); }
.pg-form fieldset { min-width: 0; margin: var(--s-5) 0 0; padding: 0; border: 0; }
.pg-form fieldset > legend { margin-top: 0; }   /* browsers ignore a legend's top margin, so the fieldset carries the space */
.pg-form .row2 { display: grid; gap: 0 var(--s-4); }
.pg-form .row2 > div { min-width: 0; }
@media (min-width: 640px) {
  .pg-form .row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* labels in a row end on the same line, so the two fields line up */
  .pg-form .row2 > div > .f:first-child { display: flex; align-items: flex-end; min-height: calc(2 * 1.35em); }
}
.pg-form .hint { margin: 6px 0 0; font-size: var(--fs-xs); line-height: 1.5; color: var(--muted); }
.pg-form .pg-hint-note { display: flex; gap: 10px; align-items: flex-start; margin-top: var(--s-5); padding: 10px 12px; background: var(--cream);
                         border-left: 2px solid var(--gold); color: var(--ink-2); font-size: var(--fs-small); }
.pg-form .pg-hint-note .ic { margin-top: 2px; color: var(--maroon); }
/* Tick boxes: each a bordered row; the consent box takes the whole width, its text beside it */
.pg-form .opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-2); }
.pg-form .opts label { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--r);
                       background: #fff; font-size: var(--fs-small); cursor: pointer; }
.pg-form .opts input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--maroon); }
.pg-form .opts label:has(input:checked) { border-color: var(--maroon); box-shadow: inset 0 0 0 1px var(--maroon); }
.pg-form .opts label.consent { display: flex; align-items: flex-start; flex: 1 1 100%; min-width: 0; padding: var(--s-4); background: var(--cream); border-color: var(--hair); }
.pg-form .opts label.consent input { width: 22px; height: 22px; margin-top: 1px; }
.pg-form .opts label.consent > span { flex: 1 1 0; min-width: 0; line-height: 1.55; }
.pg-form fieldset:has(.consent) { margin-top: var(--s-5); }
/* Problems: a message under each field, the field outlined; the summary above the button */
.pg-form .field-err { flex: 1 1 100%; margin: 6px 0 0; color: #a3261b; font-size: var(--fs-small); font-weight: 500; }
.pg-form [aria-invalid="true"]:not([type="checkbox"]) { border-color: #a3261b; box-shadow: 0 0 0 1px #a3261b; }
.pg-form .opts label:has([aria-invalid="true"]) { border-color: #a3261b; }
.pg-form .err { min-height: 1em; margin: var(--s-4) 0 var(--s-3); color: #a3261b; font-weight: 500; }
.pg-form .err:empty { margin-bottom: 0; }
.pg-form #ts:not(:empty) { margin-top: var(--s-4); }
.pg-form .closed { margin: var(--s-4) 0 0; padding: 12px 16px; border: 1px solid var(--hair); background: var(--cream); }
.pg-form .closed p { margin: 0; }
#closed:focus { outline: none; }
#closed:focus-visible { outline: 2px solid var(--maroon); outline-offset: 2px; }
.pg-form #send { width: 100%; }
@media (min-width: 560px) { .pg-form #send { width: auto; min-width: 15rem; } }

/* The side note beside a form: what happens next, the desk status */
.pg-aside { padding: var(--s-5); border: 1px solid var(--hair); border-radius: var(--r); }
@media (min-width: 1000px) { .pg-aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.pg-aside .fine { margin: var(--s-4) 0 0; }
.pg-mini-steps { list-style: none; margin: 0; padding: 0; counter-reset: pg-mini; }
.pg-mini-steps > li { position: relative; margin: 0 0 var(--s-3); padding-left: 34px; font-size: var(--fs-small); counter-increment: pg-mini; }
.pg-mini-steps > li::before { content: counter(pg-mini); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 22px; height: 22px;
                              border-radius: 50%; background: var(--maroon); color: #fff; font: 600 .72rem/1 var(--sans); }

/* ================================================================ store placeholder */
.pg-store { display: grid; gap: var(--s-4); margin: 0; padding: 0; list-style: none; }
@media (min-width: 560px) { .pg-store { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pg-store { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pg-store-card { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-2); padding: var(--s-5);
                 background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.pg-store-card .ic-lg { color: var(--maroon); }
.pg-store-card h3 { margin: var(--s-2) 0 0; }
.pg-store-card p { margin: 0; font-size: var(--fs-small); color: var(--ink-2); }
.pg-store-card .chip { margin-top: auto; }

/* ================================================================ partners */
.pg-fees-h { margin: var(--s-8) 0 var(--s-4); }
.pg-fees { display: grid; gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.pg-fees > li { padding: var(--s-4) var(--s-5); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
@media (min-width: 480px) { .pg-fees { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pg-fees { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
/* label, fee and note line up across the cards even where a label takes two lines */
@media (min-width: 480px) {
  @supports (grid-template-rows: subgrid) {
    .pg-fees > li { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  }
}
.pg-fig { margin: var(--s-7) 0 0; }
/* one puja, three clocks: each clock is its own small drawing, the city and time are page text under it; the card around them is the
   earlier draft's frame, with the note under a dashed rule */
.pg-clock-card { max-width: 640px; margin-left: auto; margin-right: auto; padding: var(--s-6) var(--s-5) var(--s-5); background: var(--paper);
                 border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1); }
.pg-fig.pg-clock-card figcaption { max-width: none; margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px dashed var(--hair); text-align: left; }
@media (max-width: 479px) { .pg-clock-card { padding: var(--s-5) var(--s-3) var(--s-4); } }
.pg-clocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); max-width: 600px; margin: 0 auto; padding: 0; list-style: none; text-align: center; }
.pg-clocks li { display: flex; flex-direction: column; align-items: center; }
.pg-clocks svg { width: min(136px, 100%); height: auto; margin-bottom: var(--s-3); }
.pg-clocks b { font: 600 1.35rem/1.2 var(--serif); color: var(--maroon-dark); }
.pg-clocks span { margin-top: 2px; font-size: var(--fs-small); line-height: 1.4; color: var(--ink-2); }
.pg-clocks .face { fill: var(--paper); stroke: var(--roots); stroke-width: 1.2; }
.pg-clocks .tk { fill: none; stroke: var(--roots); stroke-width: 1.4; }
.pg-clocks .hh { stroke: var(--maroon); stroke-width: 3.4; stroke-linecap: round; }
.pg-clocks .mh { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.pg-clocks .pin { fill: var(--maroon); }
.pg-clocks .night .face { fill: var(--maroon-dark); stroke: var(--maroon-dark); }
.pg-clocks .night .tk { stroke: var(--gold-soft); }
.pg-clocks .night :is(.hh, .mh) { stroke: #fff7e6; }
.pg-clocks .night .pin { fill: var(--gold-soft); }
/* the earlier draft's motion: the hands sweep round to the time as the clocks scroll into view */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .pg-clocks { view-timeline-name: --pg-clk; }
    .pg-clocks :is(.hh, .mh) { transform-box: view-box; transform-origin: 60px 60px; animation: pg-sweep linear both; animation-timeline: --pg-clk; animation-range: cover 5% cover 40%; }
  }
}
@keyframes pg-sweep { from { rotate: -200deg; } }
.pg-fig figcaption { max-width: var(--measure); margin: var(--s-4) auto 0; font-size: var(--fs-small); text-align: center; color: var(--ink-2); }
.pg-rule-list { display: grid; gap: 0 var(--s-7); margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .pg-rule-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pg-rule-list > li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; padding: var(--s-4) 0; border-top: 1px solid var(--hair); }
.pg-rule-list .ic { margin-top: 3px; color: var(--maroon); }
.pg-rule-list h3 { margin: 0 0 4px; font-size: 1.375rem; }
.pg-rule-list p { margin: 0; font-size: var(--fs-small); color: var(--ink-2); }
.pg-cta .lede { margin-left: auto; margin-right: auto; }
.pg-cta p:not(.lede):not(.eyebrow) { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.pg-cta-acts { justify-content: center; margin: var(--s-5) 0; }

/* ================================================================ selector ("Which service do I need?") */
.pg-sel { padding: 0 0 var(--s-8); }
.sel-app { display: grid; gap: var(--s-6); }
.sel-q { min-width: 0; margin: 0; padding: 0; border: 0; }
.sel-q > legend, .sel-lab { display: flex; align-items: center; gap: 12px; margin: 0 0 var(--s-4); padding: 0;
                            font: 600 1.5rem/1.2 var(--serif); color: var(--maroon-dark); }
.sel-n { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--maroon); color: #fff;
         font: 600 .9rem/1 var(--sans); }
/* Question 1: icon tiles, two columns on phones */
.sel-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sel-tile { position: relative; display: flex; flex-direction: column; gap: 3px; min-height: 124px; padding: 16px 14px 14px; background: var(--paper);
            border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.sel-tile .ic { width: 28px; height: 28px; margin-bottom: 8px; color: var(--maroon); }
.sel-tile::after { content: ""; position: absolute; top: 12px; right: 12px; width: 16px; height: 16px; border: 1px solid var(--roots); border-radius: 50%; background: var(--cream); }
.sel-tile-t { padding-right: 18px; font-weight: 500; line-height: 1.3; color: var(--ink); }
.sel-tile-s { margin-top: auto; font-size: var(--fs-xs); line-height: 1.4; color: var(--muted); }   /* sub-lines line up along a row */
.sel-tile:hover { border-color: var(--roots); }
.sel-tiles input:checked + .sel-tile { background: #fff; border-color: var(--maroon); box-shadow: inset 0 0 0 1px var(--maroon); }
.sel-tiles input:checked + .sel-tile::after { background: var(--maroon); border-color: var(--maroon); box-shadow: inset 0 0 0 3px #fff; }
.sel-tiles input:focus-visible + .sel-tile { outline: 2px solid var(--maroon); outline-offset: 2px; }
.sel-tile-wide { grid-column: 1 / -1; min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; }
.sel-tile-wide .ic { margin: 0; }
.sel-tile-wide .sel-tile-s { margin-top: 0; }
@media (min-width: 640px) {
  .sel-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sel-tile-wide { grid-column: span 2; min-height: 124px; flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .sel-tile-wide .ic { margin-bottom: 8px; }
  .sel-tile-wide .sel-tile-s { margin-top: auto; }
}
/* the occasion chips, and the "when" chips */
.sel-occs { min-width: 0; margin: var(--s-4) 0 0; padding: 0; border: 0; }
.sel-occs > legend { margin: 0 0 8px; padding: 0; font-size: var(--fs-small); font-weight: 500; color: var(--ink-2); }
.sel .chip-list label.chip { white-space: normal; text-align: left; }
.sel select { display: block; width: 100%; max-width: 26rem; min-height: 48px; padding: 10px 12px; border: 1px solid #8a7a66; border-radius: var(--r);
              background: #fff; color: var(--ink); font-size: 1rem; }
.sel select:focus-visible { outline: 2px solid var(--maroon); outline-offset: 1px; }
.sel-hint { margin: 8px 0 0; font-size: var(--fs-xs); color: var(--muted); }
/* The result card */
.sel-result { position: relative; min-width: 0; }
.sel-wait { display: flex; gap: 14px; align-items: flex-start; padding: var(--s-5); border: 1px dashed var(--roots); border-radius: var(--r); color: var(--ink-2); }
.sel-wait .ic { color: var(--roots); }
.sel-wait p { margin: 0; }
.sel-card { position: relative; padding: var(--s-5); background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r); box-shadow: var(--shadow-1); }
.sel-card::before { content: ""; position: absolute; inset: 5px; border: 1px solid var(--hair-2); pointer-events: none; }
@media (min-width: 640px) { .sel-card { padding: var(--s-6); } }
.sel-card > * { position: relative; }
.sel-card h3 { margin: 0 0 var(--s-2); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.sel-what { color: var(--ink-2); }
.sel-prices { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-7); margin: var(--s-4) 0; padding: var(--s-4) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sel-prices .price-fig.is-note { font: 500 var(--fs-small)/1.45 var(--sans); white-space: normal; color: var(--ink-2); }
.sel-facts { margin: 0 0 var(--s-2); }
.sel-facts dt { font: 500 var(--fs-eyebrow)/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sel-facts dd { margin: 4px 0 0; }
.sel-when, .sel-occ-note { margin: var(--s-3) 0 0; padding: 10px 12px; background: var(--cream); border-left: 2px solid var(--gold); font-size: var(--fs-small); color: var(--ink-2); }
.sel-occ-note { margin: 0 0 var(--s-3); }
.sel-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-5); margin-top: var(--s-5); }
.sel-person { font-size: var(--fs-small); }
.sel-slot .sel-occ-wrap h3 { margin: var(--s-5) 0 var(--s-2); font-size: 1.375rem; }
.sel-slot .sel-occ { grid-template-columns: minmax(0, 1fr); }
.sel-slot .sel-note { margin-bottom: 0; }
/* From 1000px: the questions on the left, the result beside them (it stays in view while the visitor answers) */
@media (min-width: 1000px) {
  .sel-app { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: var(--s-8); align-items: start; }
  .sel-q { grid-column: 1; }
  .sel-result { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: calc(var(--header-h) + 24px); }
}
/* The plain map: the whole selector without JavaScript, and the "Not sure" view */
.sel-plain { margin-top: var(--s-6); }
.sel-plain > h3 { margin-bottom: var(--s-4); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.sel-map { font-size: var(--fs-small); background: var(--paper); border: 1px solid var(--line); }
.sel-map th, .sel-map td { padding: 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.sel-map thead th { background: var(--sand); color: var(--maroon-dark); font: 500 var(--fs-eyebrow)/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.sel-map tbody th { font-weight: 500; color: var(--ink); }
.sel-map b { font-weight: 600; color: var(--maroon-dark); }
.sel-map td small { font-size: var(--fs-xs); color: var(--muted); }
.sel-map .act { white-space: nowrap; }
@media (max-width: 899px) {
  .sel-map, .sel-map tbody, .sel-map tr, .sel-map th, .sel-map td { display: block; width: auto; }
  .sel-map thead { display: none; }
  .sel-map { background: none; border: 0; }
  .sel-map tr { margin: 0 0 var(--s-3); padding: var(--s-4); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
  .sel-map th, .sel-map td { padding: 5px 0; border: 0; }
  .sel-map [data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font: 500 .7rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  .sel-map .act { padding-top: var(--s-3); white-space: normal; }
}
.sel-note { margin: var(--s-4) 0; font-size: var(--fs-small); color: var(--ink-2); }
.sel-occ-wrap h3 { margin: var(--s-6) 0 var(--s-3); font-size: 1.6rem; }
.sel-occ { display: grid; gap: 0 var(--s-6); margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .sel-occ { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sel-occ li { padding: 10px 0; border-top: 1px solid var(--hair-2); }
.sel-occ b { display: block; font-weight: 600; color: var(--ink); }
.sel-occ span { font-size: var(--fs-small); color: var(--muted); }
.sel-foot { margin: var(--s-5) 0 0; font-size: var(--fs-xs); color: var(--muted); }

/* ==== css/scenes.css ==== */
/* WP-C scenes: the earlier draft's arch scenes, and its motion in the tools and the diagrams, restored on 16 Oct 2026 at the owner's request
   ("all graphics, motions, animations etc are gone from my initial draft"). Ported from commit 82bab48 (style.css: the arch and wheel,
   "Scenes from the video ad, in CSS", their 16 Oct fixes, and "Motion"), in the current fonts and colours.
   Scope: everything sits inside .g-hero (the guide, tool and guides-index heroes) or on the guide and tool pages' own diagrams (.g-figure)
   and results (.g-doc), so nothing reaches the other packages' pages. Keyframes are prefixed ga-.
   Motion: each base style is the scene's settled, final frame. The animations run only when motion is welcome, so with reduced motion (and
   under the global rule in style.css) every scene shows its finished picture, never an empty first frame. Reveals only move things into
   place; nothing starts invisible.
   Markup: <div class="arch"><img class="wheel" src="/img/wheel.svg" alt="" width="400" height="400"><div class="art SCENE" role="img"
   aria-label="..."> the scene's spans, <span class="say"><b>line one</b><i>line two</i></span>, <span class="note"><em>label</em>
   <span>row<b>value</b></span> (up to three rows)</span></div></div>; or, for a photo, <img class="photo" ...> in place of the .art. */

/* ---------------------------------------------------------------- the arch: a scene or a photo in a temple-arch frame, the rashi wheel turning behind it */
.g-hero .arch { position: relative; justify-self: center; width: min(290px, 100%); isolation: isolate; }
.g-hero .arch .wheel { position: absolute; z-index: -2; width: 170%; max-width: none; left: -35%; top: 50%; margin-top: -85%; opacity: .45;
                       -webkit-mask-image: radial-gradient(circle, #000 42%, transparent 71%); mask-image: radial-gradient(circle, #000 42%, transparent 71%); }
.g-hero .arch::before { content: ""; position: absolute; z-index: -1; inset: -12% -18%; border-radius: 50%;
                        background: radial-gradient(circle at 50% 55%, rgba(246, 183, 60, .38), rgba(246, 183, 60, .08) 45%, transparent 68%); }
.g-hero .arch > .photo, .g-hero .arch > .art { width: 100%; aspect-ratio: 4 / 5; border-radius: 999px 999px 18px 18px; border: 2px solid rgba(212, 167, 74, .8);
                                               outline: 1px solid rgba(212, 167, 74, .35); outline-offset: 10px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .8); }
.g-hero .arch > .photo { object-fit: cover; }
/* on phones and tablets the arch sits under the text, centred */
@media (max-width: 899px) {
  .g-hero .arch { width: min(290px, 80%); margin-bottom: var(--s-3); }
  .g-hero .arch:has(> .photo) { width: min(220px, 70%); }
}

/* ---------------------------------------------------------------- a guide's scene: a small night sky, two lines above the picture, a card of facts from the page below it */
.g-hero .arch > .art { position: relative; display: block; overflow: hidden; container-type: inline-size;
                       background: radial-gradient(ellipse at 50% 108%, #561420, transparent 70%), linear-gradient(#170a0d, #2b1016 75%); }
.g-hero .art::before { content: ""; position: absolute; inset: 0 0 30%;
                       background: radial-gradient(circle at 18% 22%, #f1dca6 0 1px, transparent 2px), radial-gradient(circle at 74% 16%, #f1dca6 0 1px, transparent 2px),
                                   radial-gradient(circle at 86% 42%, #f1dca6 0 1px, transparent 2px), radial-gradient(circle at 30% 50%, #f1dca6 0 1px, transparent 2px),
                                   radial-gradient(circle at 58% 34%, #f1dca6 0 .8px, transparent 1.6px), radial-gradient(circle at 10% 64%, #f1dca6 0 .8px, transparent 1.6px),
                                   radial-gradient(circle at 66% 60%, #f1dca6 0 .8px, transparent 1.6px), radial-gradient(circle at 44% 10%, #f1dca6 0 .8px, transparent 1.6px); }
.g-hero .art .say { position: absolute; inset: 19% 0 auto; text-align: center; font-family: var(--serif); line-height: 1.08; }
.g-hero .art .say b, .g-hero .art .say i { display: block; font-size: 10cqw; }
.g-hero .art .say b { color: #fff7e6; }
.g-hero .art .say i { font-weight: 600; color: var(--gold-soft); }
.g-hero .art .note { position: absolute; inset: auto 7% 4.5%; padding: 2.6cqw 5cqw 3cqw; border-radius: 3.5cqw; background: rgba(251, 245, 234, .97);
                     box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, .35); font: 500 5cqw/1.5 var(--sans); color: var(--ink); }
/* the card's label in the site's eyebrow style (the earlier draft set it in Cinzel, which is no longer published) */
.g-hero .art .note em { display: block; margin-bottom: 1cqw; text-align: center; font: 500 .7rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase;
                        color: var(--maroon); }
.g-hero .art .note > span { display: flex; justify-content: space-between; gap: 3cqw; }
.g-hero .art .note b { color: var(--maroon-dark); }
.g-hero .art .note b.to { color: #a6470f; }

/* muhurat: night turns to sunrise */
.g-hero .dawn::before { opacity: 0; }
.g-hero .dawn .sky { position: absolute; inset: 0; background: linear-gradient(#7a1f2b, #a83a2c 34%, #e58c3f 58%, #f8d58c 72%); }
.g-hero .dawn .sun { position: absolute; left: 37%; bottom: 29%; width: 26%; aspect-ratio: 1; border-radius: 50%;
                     background: radial-gradient(circle at 42% 40%, #fff6d2, #f6b73c 58%, #e38b1f); box-shadow: 0 0 9cqw 3cqw rgba(246, 183, 60, .5); }
.g-hero .dawn .ground { position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(#561420, #2b1016); border-top: 1px solid rgba(241, 220, 166, .55); }
/* festivals: the Moon waxes to full */
.g-hero .moon .orb { position: absolute; left: 36%; top: 40%; width: 28%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
                     background: radial-gradient(circle at 38% 36%, #fffbe8, #f1dca6 55%, #d9b865); box-shadow: 0 0 10cqw 2cqw rgba(241, 220, 166, .3); }
.g-hero .moon .shade { position: absolute; inset: -4%; border-radius: 50%; background: #1f0c11; transform: translateX(-112%); }
/* kundli matching: two charts side by side (outlines only) */
.g-hero .charts .duo { position: absolute; left: 12%; right: 12%; top: 41%; display: flex; align-items: center; justify-content: space-between; }
.g-hero .charts svg { flex: none; width: 29cqw; fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-dasharray: 100; }
.g-hero .charts path { fill: none; }
.g-hero .charts .duo i { font-style: normal; font-size: 8cqw; color: var(--saffron); }
/* puja from abroad: a lamp is lit */
.g-hero .diya .glow { position: absolute; left: 10%; top: 21%; width: 80%; aspect-ratio: 1; border-radius: 50%;
                      background: radial-gradient(circle, rgba(246, 183, 60, .45), rgba(246, 183, 60, .12) 40%, transparent 68%); }
.g-hero .diya .flame { position: absolute; left: 45.5%; top: 46%; width: 9%; height: 13%; transform-origin: 50% 100%; }
.g-hero .diya .flame::before { content: ""; position: absolute; inset: 0; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; transform-origin: 50% 100%;
                               background: radial-gradient(ellipse at 50% 72%, #fff8d6, #f6b73c 45%, #e0701a 85%); box-shadow: 0 0 4cqw 1cqw rgba(246, 183, 60, .55); }
.g-hero .diya .bowl { position: absolute; left: 33%; top: 59%; width: 34%; height: 8%; border-radius: 0 0 999px 999px; background: linear-gradient(#d18b43, #7a3d17);
                      box-shadow: inset 0 1.2cqw 0 rgba(255, 236, 190, .35); }
/* consultation: 30 minutes, then 60 (the dial is full: --ga-deg starts at 360deg) */
@property --ga-deg { syntax: "<angle>"; inherits: false; initial-value: 360deg; }
.g-hero .clock .dial, .g-hero .clock .mins { position: absolute; left: 35%; top: 40%; width: 30%; aspect-ratio: 1; }
.g-hero .clock .dial { border-radius: 50%; background: conic-gradient(var(--saffron) var(--ga-deg, 360deg), rgba(241, 220, 166, .14) 0);
                       -webkit-mask-image: radial-gradient(circle, transparent 60%, #000 61%); mask-image: radial-gradient(circle, transparent 60%, #000 61%); }
.g-hero .clock .mins { display: grid; justify-items: center; align-content: center; }
.g-hero .clock .mins b { grid-area: 1 / 1; font: 600 10cqw/1 var(--serif); font-variant-numeric: lining-nums; color: #fff7e6; }
.g-hero .clock .mins small { font: 500 2.9cqw var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); }
.g-hero .clock .mins b:first-child { opacity: 0; }
/* family dates: the same tithi lands on a different day each year */
.g-hero .cal .days { position: absolute; left: 25%; top: 41%; width: 50%; aspect-ratio: 7 / 4; border-top: 1px solid rgba(241, 220, 166, .3);
                     background: radial-gradient(circle, rgba(241, 220, 166, .4) 0 1cqw, transparent 1.1cqw) 0 0 / calc(100% / 7) 25%; }
.g-hero .cal .ring { position: absolute; left: 0; top: 0; width: calc(100% / 7); aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--saffron);
                     box-shadow: 0 0 3cqw rgba(246, 183, 60, .6); transform: translate(400%, 200%); }
/* puja planner: five lamps lit one after another */
.g-hero .lamps .row5 { position: absolute; left: 9%; right: 9%; top: 60%; display: flex; justify-content: space-between; }
.g-hero .lamps .row5 i { position: relative; width: 15%; aspect-ratio: 2 / 1; border-radius: 0 0 999px 999px; background: linear-gradient(#d18b43, #7a3d17); }
.g-hero .lamps .row5 i::before { content: ""; position: absolute; left: 36%; bottom: 100%; width: 28%; aspect-ratio: 2 / 3; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
                                 background: radial-gradient(ellipse at 50% 72%, #fff8d6, #f6b73c 45%, #e0701a 85%); box-shadow: 0 0 5cqw 1.5cqw rgba(246, 183, 60, .4); transform-origin: 50% 100%; }
/* birth star: the Moon moves along the ring of nakshatras */
.g-hero .nak .path { position: absolute; left: -25%; top: 44%; width: 150%; aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed rgba(241, 220, 166, .45); }
.g-hero .nak .arm { position: absolute; left: 50%; top: calc(44% + 75cqw); transform: rotate(8deg); }
.g-hero .nak .moonlet { position: absolute; left: -6cqw; top: -81cqw; width: 12cqw; aspect-ratio: 1; border-radius: 50%;
                        background: radial-gradient(circle at 38% 36%, #fffbe8, #f1dca6 55%, #d9b865); box-shadow: 0 0 6cqw 1.5cqw rgba(241, 220, 166, .45); }

@media (prefers-reduced-motion: no-preference) {
  .g-hero .arch .wheel { animation: ga-spin 160s linear infinite; }
  .g-hero .arch::before { animation: ga-glow 5s ease-in-out infinite alternate; }
  /* every scene runs on the same 10 seconds: the two lines, the picture moves, then the card row by row; held, then back to the start.
     The kundli charts, the consultation dial and the muhurat sunrise hold their finished picture, as they did in the earlier draft (their
     loops opened on an empty frame); their two lines and their card still play. */
  .g-hero .art:not(.dawn)::before { animation: ga-twinkle 3s ease-in-out infinite alternate; }
  .g-hero .art .say b { animation: ga-art-l1 10s ease infinite; }
  .g-hero .art .say i { animation: ga-art-l2 10s ease infinite; }
  .g-hero .art .note { animation: ga-art-card 10s ease infinite; }
  .g-hero .art .note > span:nth-of-type(1) { animation: ga-art-r1 10s ease infinite; }
  .g-hero .art .note > span:nth-of-type(2) { animation: ga-art-r2 10s ease infinite; }
  .g-hero .art .note > span:nth-of-type(3) { animation: ga-art-r3 10s ease infinite; }
  .g-hero .moon .shade { animation: ga-moon-wax 10s ease-in-out infinite; }
  .g-hero .diya .glow { animation: ga-diya-glow 10s ease infinite; }
  .g-hero .diya .flame { animation: ga-diya-lit 10s ease infinite; }
  .g-hero .diya .flame::before { animation: ga-flick 1.1s ease-in-out infinite alternate; }
  .g-hero .cal .ring { animation: ga-cal-hop 10s ease-in-out infinite; }
  .g-hero .lamps .row5 i:nth-child(1)::before { animation: ga-lamp1 10s ease infinite; }
  .g-hero .lamps .row5 i:nth-child(2)::before { animation: ga-lamp2 10s ease infinite; }
  .g-hero .lamps .row5 i:nth-child(3)::before { animation: ga-lamp3 10s ease infinite; }
  .g-hero .lamps .row5 i:nth-child(4)::before { animation: ga-lamp4 10s ease infinite; }
  .g-hero .lamps .row5 i:nth-child(5)::before { animation: ga-lamp5 10s ease infinite; }
  .g-hero .nak .arm { animation: ga-nak-move 10s ease-in-out infinite; }
}
@keyframes ga-spin { to { transform: rotate(360deg); } }
@keyframes ga-glow { from { opacity: .65; transform: scale(.94); } to { opacity: 1; transform: scale(1.04); } }
@keyframes ga-twinkle { from { opacity: .15; } to { opacity: 1; } }
@keyframes ga-art-l1 { 0% { opacity: 0; transform: translateY(8px); } 6%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes ga-art-l2 { 0%, 10% { opacity: 0; transform: translateY(8px); } 16%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes ga-art-card { 0%, 24% { opacity: 0; transform: translateY(12px) scale(.97); } 32%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }   /* the card comes in at about 2.5 s (the draft waited 4.5 s, leaving the arch half empty) */
@keyframes ga-art-r1 { 0%, 31% { opacity: 0; transform: translateX(-6px); } 36%, 100% { opacity: 1; transform: none; } }
@keyframes ga-art-r2 { 0%, 39% { opacity: 0; transform: translateX(-6px); } 44%, 100% { opacity: 1; transform: none; } }
@keyframes ga-art-r3 { 0%, 47% { opacity: 0; transform: translateX(-6px); } 52%, 100% { opacity: 1; transform: none; } }
@keyframes ga-moon-wax { 0%, 12% { transform: none; } 48%, 90% { transform: translateX(-112%); } 97%, 100% { transform: none; } }
@keyframes ga-diya-glow { 0%, 14% { opacity: 0; } 32%, 90% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes ga-diya-lit { 0%, 12% { opacity: 0; transform: scale(.2); } 24%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes ga-flick { from { transform: scale(1) rotate(-1.5deg); } to { transform: scale(.92, 1.07) rotate(1.5deg); } }
@keyframes ga-cal-hop { 0%, 14% { opacity: 0; transform: translate(100%, 100%); } 18%, 30% { opacity: 1; transform: translate(100%, 100%); } 34%, 46% { transform: translate(500%, 0%); }
                        50%, 62% { transform: translate(200%, 300%); } 66%, 90% { opacity: 1; transform: translate(400%, 200%); } 97%, 100% { opacity: 0; transform: translate(400%, 200%); } }
@keyframes ga-lamp1 { 0%, 14% { opacity: 0; transform: scale(.3); } 18%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes ga-lamp2 { 0%, 20% { opacity: 0; transform: scale(.3); } 24%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes ga-lamp3 { 0%, 26% { opacity: 0; transform: scale(.3); } 30%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes ga-lamp4 { 0%, 32% { opacity: 0; transform: scale(.3); } 36%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes ga-lamp5 { 0%, 38% { opacity: 0; transform: scale(.3); } 42%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes ga-nak-move { 0%, 10% { opacity: 0; transform: rotate(-32deg); } 16% { opacity: 1; } 46%, 90% { opacity: 1; transform: rotate(8deg); } 97%, 100% { opacity: 0; transform: rotate(8deg); } }

/* ---------------------------------------------------------------- the tools' results and the diagrams (the earlier draft's "Motion") */
@media (prefers-reduced-motion: no-preference) {
  /* tool results move into place, one block after another: the birth star (#out, #cardbox), the family list (#list) and today's panel, the planner's answer */
  .g-doc :is(#out > *, #list > *, #cardbox, .g-today, #answer > *) { animation: ga-appear .55s ease both; }
  .g-doc :is(#out, #list) > :nth-child(2) { animation-delay: .08s; }
  .g-doc :is(#out, #list) > :nth-child(3) { animation-delay: .16s; }
  .g-doc :is(#out, #list) > :nth-child(4) { animation-delay: .24s; }
  .g-doc :is(#out, #list) > :nth-child(n+5) { animation-delay: .32s; }
  .g-doc .checklist input:checked { animation: ga-tick .3s ease; }
  /* the nakshatra wheel: a breathing halo round the hub, the Moon's orbit turning slowly, and the Moon marks glowing */
  .g-doc .nakwheel .halo { animation: ga-halo 4s ease-in-out infinite; }
  .g-doc .nakwheel .orbit { animation: ga-orbit 80s linear infinite; }
  .g-doc .nakwheel .mark circle { animation: ga-sunglow 2.6s ease-in-out infinite; }
  /* the sunrise that counts glows */
  .g-figure .sunrise .sun.hit circle { animation: ga-sunglow 2.8s ease-in-out infinite; }
}
/* inside each diagram, parts move into place as the diagram scrolls into view (where the browser supports it; elsewhere they are simply there) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .g-figure { view-timeline-name: --ga-fig; }
    .g-figure .tithis .tt { transform-box: fill-box; transform-origin: center; animation: ga-moon-in linear both; animation-timeline: --ga-fig; }
    .g-figure .tithis .tt:nth-of-type(15n+1) { animation-range: cover 4.0% cover 16.0%; }
    .g-figure .tithis .tt:nth-of-type(15n+2) { animation-range: cover 5.3% cover 17.3%; }
    .g-figure .tithis .tt:nth-of-type(15n+3) { animation-range: cover 6.6% cover 18.6%; }
    .g-figure .tithis .tt:nth-of-type(15n+4) { animation-range: cover 7.9% cover 19.9%; }
    .g-figure .tithis .tt:nth-of-type(15n+5) { animation-range: cover 9.2% cover 21.2%; }
    .g-figure .tithis .tt:nth-of-type(15n+6) { animation-range: cover 10.5% cover 22.5%; }
    .g-figure .tithis .tt:nth-of-type(15n+7) { animation-range: cover 11.8% cover 23.8%; }
    .g-figure .tithis .tt:nth-of-type(15n+8) { animation-range: cover 13.1% cover 25.1%; }
    .g-figure .tithis .tt:nth-of-type(15n+9) { animation-range: cover 14.4% cover 26.4%; }
    .g-figure .tithis .tt:nth-of-type(15n+10) { animation-range: cover 15.7% cover 27.7%; }
    .g-figure .tithis .tt:nth-of-type(15n+11) { animation-range: cover 17.0% cover 29.0%; }
    .g-figure .tithis .tt:nth-of-type(15n+12) { animation-range: cover 18.3% cover 30.3%; }
    .g-figure .tithis .tt:nth-of-type(15n+13) { animation-range: cover 19.6% cover 31.6%; }
    .g-figure .tithis .tt:nth-of-type(15n+14) { animation-range: cover 20.9% cover 32.9%; }
    .g-figure .tithis .tt:nth-of-type(15n+15) { animation-range: cover 22.2% cover 34.2%; }
    .g-figure .clocks :is(.hh, .mh) { transform-box: view-box; animation: ga-sweep linear both; animation-timeline: --ga-fig; animation-range: cover 5% cover 40%; }
    .g-figure .clocks .clock:nth-of-type(1) :is(.hh, .mh) { transform-origin: 100px 90px; }
    .g-figure .clocks .clock:nth-of-type(2) :is(.hh, .mh) { transform-origin: 300px 90px; }
    .g-figure .clocks .clock:nth-of-type(3) :is(.hh, .mh) { transform-origin: 500px 90px; }
    .g-figure .ayan :is(.sid, .sid + .ay-n) { animation: ga-slide-in linear both; animation-timeline: --ga-fig; animation-range: cover 8% cover 38%; }
    .g-figure .ayan .gap { transform-box: fill-box; transform-origin: left; animation: ga-draw-x linear both; animation-timeline: --ga-fig; animation-range: cover 25% cover 42%; }
    .g-figure :is(.ayan .sunpin, .sunrise .sun.hit) { animation: ga-drop linear both; animation-timeline: --ga-fig; animation-range: cover 10% cover 30%; }
    .g-figure .sunrise .band { animation: ga-appear linear both; animation-timeline: --ga-fig; animation-range: cover 5% cover 25%; }
  }
}
@keyframes ga-appear { from { translate: 0 14px; } }
@keyframes ga-tick { 50% { scale: 1.3; } }
@keyframes ga-halo { 50% { stroke-width: 12; stroke-opacity: .12; } }
@keyframes ga-orbit { to { stroke-dashoffset: -900; } }
@keyframes ga-sunglow { 50% { stroke-width: 7; stroke: #f2b742; } }
@keyframes ga-moon-in { from { scale: .3; } }
@keyframes ga-sweep { from { rotate: -200deg; } }
@keyframes ga-slide-in { from { translate: -40px 0; } }
@keyframes ga-draw-x { from { scale: 0 1; } }
@keyframes ga-drop { from { translate: 0 -24px; } }

/* ==== css/ticker.css ==== */
/* The top banner as a ticker (owner decision, 18 Oct 2026: updates, upcoming festivals and facts, like a news channel). There is no label box (owner, 18 Oct 2026): the lines carry their own small tag. Markup is written by
   ticker.mjs at the site root and filled by js/ticker.mjs. Every class starts with .tick. The maroon strip itself (.topbar, .topbar-in) is in style.css.
   Motion only when it is welcome: the strip runs by itself, pauses while hovered or focused, and with reduced motion stands still and scrolls by hand. */
.tick-lane { position: relative; flex: 1; min-width: 0; overflow: hidden;
             -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.tick-list { display: flex; flex-wrap: nowrap; width: max-content; margin: 0; padding: 0; list-style: none; white-space: nowrap; }
.tick-item { display: inline-flex; align-items: baseline; gap: 8px; }
/* the diamond between items, as on the section dividers */
.tick-item::after { content: ""; align-self: center; width: 5px; height: 5px; margin: 0 var(--s-5); border: 1px solid var(--gold); transform: rotate(45deg); }
.tick-tag { font: 600 .625rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.tick-item a { color: var(--gold-soft); text-decoration: none; }
.tick-item a:hover, .tick-item a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: .18em; }
@media (prefers-reduced-motion: no-preference) {
  .tick-lane.is-live .tick-list { animation: tick-run var(--tick-dur, 60s) linear infinite; }
  .tick-lane.is-live:hover .tick-list, .tick-lane.is-live:focus-within .tick-list { animation-play-state: paused; }
}
@keyframes tick-run { to { transform: translateX(-50%); } }
/* reduced motion (the visitor's own setting): no movement, scroll by hand */
.tick-lane.is-still { overflow-x: auto; scrollbar-width: none; }
.tick-lane.is-still::-webkit-scrollbar { display: none; }
@media (max-width: 559px) { .tick-tag { display: none; } }
