/* ==========================================================================
   The Kaamadhenu project page — its own set of pieces.

   Everything here sits on top of navagraha.css and reads the same tokens, so
   the page inherits the site's colour, type and dark-scope behaviour. Nothing
   in this file is used anywhere else; nothing else depends on it.
   ========================================================================== */

/* ------------------------------------------------------------- corrections */
/* The chapter numeral is outlined in ink, which disappears on a dark ground. */
.on-dark .chapter-no { -webkit-text-stroke-color: rgba(253,249,240, .3); }


/* ================================================================= 1. hero */
/* A night sky with twenty-seven stars in it — the whole project in one image. */
.pj-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: calc(var(--section-y) + 60px) var(--gutter) 0;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(32,122,70, .5), transparent 62%),
    radial-gradient(90% 70% at 12% 96%, rgba(238,118,35, .2), transparent 60%),
    linear-gradient(180deg, #07150D 0%, #0D2617 52%, #09190F 100%);
}

/* the hills, sunk almost all the way into the dark */
.pj-hero__ridge {
  position: absolute;
  inset: auto 0 0 0;
  height: 62%;
  z-index: 0;
  opacity: .3;
  mask-image: linear-gradient(180deg, transparent, #000 58%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 58%);
}
.pj-hero__ridge img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(.5) brightness(.55) contrast(1.1);
}

.pj-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.pj-stars circle { fill: #FDF9F0; }
.pj-stars .pj-star { animation: pj-twinkle 6s ease-in-out infinite; }
.pj-stars .pj-star--lit { fill: var(--orange); }
.pj-stars line { stroke: rgba(253,249,240, .13); stroke-width: .5; }
@keyframes pj-twinkle {
  0%, 100% { opacity: .35; }
  50%      { opacity: 1; }
}

.pj-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1560px;
  margin-inline: auto;
  padding-bottom: clamp(40px, 6vw, 88px);
}

.pj-hero__title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.7rem, 7.4vw, 7.4rem);
  line-height: .95;
  letter-spacing: -.02em;
  margin: 1.6rem 0 0;
  max-width: 18ch;
}
.pj-hero__title em {
  font-style: italic;
  color: var(--orange);
}
/* one line wherever the screen is wide enough to hold it */
.pj-hero__sub {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(.74rem, 1.1vw, 1.05rem);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(253,249,240, .6);
  margin: 2rem 0 0;
  line-height: 2;
  white-space: nowrap;
}
@media (max-width: 760px) { .pj-hero__sub { white-space: normal; letter-spacing: .2em; } }

/* the dossier strip — what this document is, in three columns */
.pj-dossier {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1560px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(253,249,240, .18);
}
.pj-dossier > * {
  padding: clamp(20px, 2.6vw, 34px) clamp(18px, 2.4vw, 34px) clamp(24px, 3vw, 40px);
  border-right: 1px solid rgba(253,249,240, .18);
}
.pj-dossier > *:last-child { border-right: 0; }
.pj-dossier dt {
  font-size: .62rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(253,249,240, .42);
  margin-bottom: .7rem;
}
/* all three set alike, at the size of the location */
.pj-dossier dd {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.7vw, 1.5rem);
  line-height: 1.3;
  color: #FDF9F0;
}


/* ================================================== 2. the reading spine */
/* A fixed rail of fifteen marks — where you are in the document. */
.pj-spine {
  position: fixed;
  top: 50%;
  right: clamp(14px, 1.8vw, 30px);
  transform: translateY(-50%);
  z-index: 90;
  display: grid;
  gap: 10px;
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.pj-spine.is-on { opacity: 1; }
.pj-spine a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  text-decoration: none;
}
/* The rail is fixed while the page alternates paper and night beneath it, so
   it cannot use the theme tokens — these two greys read on both. */
.pj-spine__label {
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(150, 140, 136, .95);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  white-space: nowrap;
}
.pj-spine__tick {
  width: 20px;
  height: 1px;
  background: rgba(150, 140, 136, .75);
  transition: width .4s var(--ease), background .4s var(--ease);
  flex: none;
}
.pj-spine a:hover .pj-spine__label { opacity: 1; transform: none; }
.pj-spine a:hover .pj-spine__tick,
.pj-spine a.is-here .pj-spine__tick { width: 34px; background: var(--orange); }
.pj-spine a.is-here .pj-spine__label { opacity: 1; transform: none; color: var(--orange); }
@media (max-width: 1240px) { .pj-spine { display: none; } }


/* ============================================================ 3. the lists */
/* The document is written in bullets; this is how they are set. */
.pj-tick { display: grid; gap: .9rem; }
.pj-tick li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--text-dim);
  line-height: 1.65;
}
.pj-tick li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: .55em;
  width: 8px;
  height: 8px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
}
.pj-tick li b {
  display: block;
  color: var(--text);
  font-weight: 500;
  margin-bottom: .15rem;
}
.pj-tick--sm li { padding-left: 1.5rem; font-size: .93rem; gap: .7rem; }
.pj-tick--sm li::before { width: 6px; height: 6px; top: .62em; }

/* a quiet aside, for what the document states as intent rather than fact */
.pj-note {
  border-left: 2px solid var(--accent);
  padding: .1rem 0 .1rem 1.4rem;
  color: var(--text-dim);
  font-size: .94rem;
  line-height: 1.7;
  max-width: 64ch;
}


/* ====================================================== 4. vision statement */
.pj-vision {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(110px, 14vw, 230px);
}
.pj-vision__text {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.5rem, 3.3vw, 3.1rem);
  line-height: 1.22;
  letter-spacing: -.01em;
  max-width: 28ch;
  margin: 1.8rem auto 0;
}
.pj-vision__text em { font-style: italic; color: var(--orange); }
.pj-vision__mark {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  margin-inline: auto;
  color: var(--orange);
}


/* ================================================== 5. the four objectives */
.pj-quad {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}
.pj-quad__cell {
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: clamp(28px, 3.6vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: background .5s var(--ease);
}
.pj-quad__cell:hover { background: var(--surface-2); }
.pj-quad__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.pj-quad__no {
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .22em;
  color: var(--accent);
}
.pj-quad__cell h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  margin: 0;
}
.pj-quad__icon {
  width: 46px; height: 46px;
  color: var(--accent);
  stroke-width: 1.2;
}
@media (max-width: 860px) { .pj-quad { grid-template-columns: 1fr; } }


/* ======================================================= 6. drawn plates */
/* Where there is no honest photograph — a cow, a Nandi, a Ganapathi — the
   page draws the thing instead of borrowing a picture of something else. */
.pj-plate {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(28px, 4vw, 72px);
  background:
    radial-gradient(70% 60% at 50% 38%, rgba(238,118,35, .16), transparent 70%),
    linear-gradient(160deg, #0E2A1A 0%, #123A22 48%, #0B2013 100%);
}
.pj-plate svg {
  width: min(100%, 520px);
  height: auto;
  color: rgba(253,249,240, .9);
}
.pj-plate__ring {
  position: absolute;
  inset: clamp(18px, 2.4vw, 40px);
  border: 1px solid rgba(253,249,240, .14);
  pointer-events: none;
}
.pj-plate__ring::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(253,249,240, .07);
}
/* on a paper section the plate stays paper */
.pj-plate--paper {
  background:
    radial-gradient(70% 60% at 50% 38%, rgba(238,118,35, .1), transparent 70%),
    var(--surface-2);
}
.pj-plate--paper svg { color: var(--green); }
.pj-plate--paper .pj-plate__ring { border-color: var(--hairline); }


/* ============================================ 7. the twenty-seven nakshatras */
/* Twenty-seven will not sit on one ring, so they run on three rings of nine —
   the same division the almanac uses for the three cycles. */
.pj-wheel .wheel__hub { inset: 36%; }
.pj-wheel .graha-node text { font-size: 12px; letter-spacing: 0; }
.pj-wheel .graha-node circle { stroke-width: 1; }

.pj-star-card { position: relative; min-height: 400px; }
.pj-star-card__no {
  font-family: var(--sans);
  font-size: .64rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: .9rem;
}
.pj-star-card__name {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
  margin: 0 0 .3rem;
}
.pj-star-card__sans {
  font-family: var(--deva);
  color: var(--accent-display);
  font-size: 1.15rem;
  margin-bottom: 1.4rem;
}
.pj-star-card__body { color: var(--text-dim); max-width: 46ch; line-height: 1.7; }

.pj-ring-key {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 1.6rem;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.pj-ring-key span { display: flex; align-items: center; gap: .5rem; }
.pj-ring-key i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  font-style: normal;
}
.pj-wheel-hint {
  margin-top: 1.5rem;
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
}


/* ====================================================== 8. adoption record */
/* The adoption concept, shown as the record it would produce. */
.pj-record {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: clamp(28px, 3.6vw, 52px);
  max-width: 560px;
}
.pj-record::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid var(--hairline-soft);
  pointer-events: none;
}
.pj-record__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--hairline);
}
.pj-record__seal { width: 44px; height: 44px; color: var(--accent); flex: none; }
.pj-record__head h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.35rem;
}
.pj-record__head p {
  margin: .2rem 0 0;
  font-size: .64rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.pj-record__rows { margin: 1.4rem 0 0; display: grid; gap: .1rem; }
.pj-record__rows div {
  display: grid;
  grid-template-columns: 13ch minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: .7rem 0;
  border-bottom: 1px dotted var(--hairline);
}
.pj-record__rows dt {
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.pj-record__rows dd {
  margin: 0;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--text);
}
.pj-record__foot {
  margin-top: 1.4rem;
  font-size: .76rem;
  line-height: 1.7;
  color: var(--text-faint);
}


/* ================================================== 9. purposeful prasadam */
/* Seven products plus the summary cell make eight — two clean rows of four,
   so the grid never ends on a row of dead cells. */
.pj-shelf {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}
.pj-shelf__item {
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: clamp(22px, 2.6vw, 34px);
  display: flex;
  flex-direction: column;
  gap: .9rem;
  transition: background .5s var(--ease);
}
.pj-shelf__item:hover { background: var(--surface-2); }
.pj-shelf__item svg { width: 34px; height: 34px; color: var(--accent); stroke-width: 1.2; }
.pj-shelf__item h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.25rem;
}
.pj-shelf__item p { margin: 0; font-size: .88rem; color: var(--text-dim); line-height: 1.6; }


/* ======================================================= 10. the phasing */
.pj-phases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--hairline);
}
.pj-phase {
  position: relative;
  padding: clamp(28px, 3.4vw, 52px) clamp(22px, 2.8vw, 44px) clamp(28px, 3.4vw, 52px) 0;
  border-right: 1px solid var(--hairline);
}
.pj-phase:last-child { border-right: 0; }
/* the marker that sits on the top rule */
.pj-phase::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--accent);
  transform: rotate(45deg);
}
.pj-phase__no {
  font-family: var(--display);
  font-size: clamp(2.6rem, 4.4vw, 4rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--text-faint);
  margin-bottom: .6rem;
}
.pj-phase h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0 0 1.4rem;
}
@media (max-width: 860px) {
  .pj-phases { grid-template-columns: 1fr; }
  .pj-phase { border-right: 0; border-bottom: 1px solid var(--hairline); padding-right: 0; }
  .pj-phase:last-child { border-bottom: 0; }
}


/* ==================================================== 11. expected outcomes */
.pj-outcome {
  display: grid;
  grid-template-columns: 5ch minmax(0, 1fr);
  gap: clamp(20px, 3vw, 54px);
  align-items: baseline;
  padding: clamp(24px, 3vw, 44px) 0;
  border-top: 1px solid var(--hairline);
}
.pj-outcome:last-child { border-bottom: 1px solid var(--hairline); }
.pj-outcome__no {
  font-family: var(--sans);
  font-size: .66rem;
  letter-spacing: .22em;
  color: var(--accent);
}
.pj-outcome__sub {
  display: block;
  margin-top: .7rem;
  max-width: 62ch;
  font-size: .98rem;
  line-height: 1.65;
  color: var(--text-dim);
}
.pj-outcome p {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.35rem, 2.6vw, 2.3rem);
  line-height: 1.25;
  max-width: 26ch;
}


/* ================================================ 12. the questions */
/* The FAQ itself is styled in navagraha.css (.faq); nothing extra here. */


/* ============================================================ 13. closing */
.pj-close {
  text-align: center;
  padding-block: clamp(120px, 18vw, 280px);
}
.pj-close__text {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.5rem, 3.3vw, 3.2rem);
  line-height: 1.25;
  max-width: 24ch;
  margin: 0 auto;
}
.pj-close__text em { font-style: italic; color: var(--orange); }
.pj-namasthe {
  font-family: var(--deva);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  color: var(--orange);
  margin-top: clamp(48px, 7vw, 110px);
  /* the vowel sign sits above the letter — a line-height of 1 clips it */
  line-height: 1.45;
}
.pj-namasthe small {
  display: block;
  font-family: var(--sans);
  font-size: .66rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 1.4rem;
}


/* -------------------------------------------------------------- responsive */
@media (max-width: 1200px) {
  .pj-dossier { grid-template-columns: 1fr; }
  .pj-dossier > * { border-right: 0; border-bottom: 1px solid rgba(253,249,240, .18); }
  .pj-dossier > *:last-child { border-bottom: 0; }
}
@media (max-width: 640px) {
  .pj-wheel .graha-node text { font-size: 15px; }
  .pj-record__rows div { grid-template-columns: 1fr; gap: .2rem; }
  .pj-outcome { grid-template-columns: 1fr; gap: .8rem; }
}


/* ====================================================== 14. the drawn line */
/* Both drawings — the cow and the tree ring — are pure stroke, so they take
   their colour from the plate they sit on and work on paper or on night. */
.pj-draw path,
.pj-draw ellipse,
.pj-draw circle,
.pj-draw line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.pj-draw .pj-draw--fill { fill: currentColor; stroke: none; }
.pj-draw .pj-draw--faint { opacity: .45; }

.pj-forest path { stroke-width: 1.1; }
.pj-forest__star { fill: rgba(253,249,240, .55) !important; stroke: none !important; }
.pj-forest__star--lit { fill: var(--orange) !important; }
.pj-plate--paper .pj-forest__star { fill: rgba(26, 18, 16, .4) !important; }
.pj-forest__ring { opacity: .2; stroke-dasharray: 2 8; }
.pj-forest__count {
  font-family: var(--display);
  font-size: 54px;
  fill: currentColor;
  stroke: none;
  text-anchor: middle;
  dominant-baseline: central;
  opacity: .7;
}
.pj-forest__count tspan {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 3px;
  opacity: .7;
}

/* ====================================================== 15. the governance */
.pj-gov { width: 100%; height: auto; color: var(--text); }
.pj-gov rect, .pj-gov path { fill: none; stroke: currentColor; stroke-width: 1; }
.pj-gov .pj-gov__key { stroke: var(--accent); }
.pj-gov text {
  fill: var(--text);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-anchor: middle;
  dominant-baseline: central;
  stroke: none;
}
.pj-gov .pj-gov__lede { font-family: var(--display); font-size: 15px; letter-spacing: 0; text-transform: none; }

/* the eighth cell: where the money from the other seven goes */
.pj-shelf__item--sum { background: var(--surface); }
.pj-shelf__item--sum:hover { background: var(--surface); }
.pj-shelf__item--sum h4 { color: var(--accent-display); }
.pj-shelf__item--sum ul { display: grid; gap: .5rem; }
.pj-shelf__item--sum li {
  font-family: var(--display);
  font-size: 1.12rem;
  color: var(--text);
  padding-left: 1.1rem;
  position: relative;
}
.pj-shelf__item--sum li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  transform: rotate(45deg);
}

@media (max-width: 1100px) { .pj-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .pj-shelf { grid-template-columns: 1fr; } }

/* ===================================================== 16. kaalindi aarathi */
/* The river aarti shows through the band, not just as a tint — dark enough
   at the centre that the words stay readable over the lamps and the sky. */
.pj-kaalindi__bg { opacity: .62; }
.pj-kaalindi__bg img { object-position: 50% 40%; }
.pj-kaalindi__bg::after {
  background:
    radial-gradient(70% 62% at 50% 50%, rgba(10,26,17,.78), rgba(10,26,17,.5) 70%, rgba(10,26,17,.72));
}
