/* =========================================================
   Meet your guide — portrait with golden halo + stat cards
   ========================================================= */
.guide {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(38% 60% at 24% 62%, rgba(120, 30, 230, .34), transparent 70%),
    radial-gradient(30% 45% at 8% 95%, rgba(150, 50, 255, .28), transparent 70%),
    radial-gradient(40% 50% at 78% 40%, rgba(80, 20, 160, .22), transparent 72%),
    #050307;
}
.guide::before, .guide::after {           /* seamless joins with neighbours */
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 110px;
  z-index: 1;
  pointer-events: none;
}
.guide::before { top: 0; background: linear-gradient(to bottom, #050307, rgba(5, 3, 7, 0)); }
.guide::after { bottom: 0; background: linear-gradient(to top, #050307, rgba(5, 3, 7, 0)); }

.guide__wisps {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

.guide__inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
}

/* ---------- portrait + halo ---------- */
.guide__visual {
  align-self: end;
  perspective: 1000px;
}
.guide__stage {
  position: relative;
  width: min(100%, 600px);
  aspect-ratio: 1272 / 1168;                /* ornate lotus medallion artwork (guide_ornate_medallion.webp) */
  margin: 0 auto;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform .6s var(--ease, ease);
}
.guide__ring {
  position: absolute;
  left: 50%; top: 2%;
  width: 82%;
  transform: translateX(-50%) rotate(-90deg) scale(.86);
  overflow: visible;
  opacity: 0;
  transition: opacity 1.2s var(--ease, ease), transform 1.6s var(--ease, ease);
  z-index: 0;
}
.guide__ring circle { fill: none; }
.guide__ring-halo {
  stroke: rgba(247, 196, 124, .16);
  stroke-width: 34;
  filter: blur(14px);
}
.guide__ring-main {
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 943;
  stroke-dashoffset: 943;
  transition: stroke-dashoffset 2.2s var(--ease, ease) .2s;
}
.guide__ring-spark {
  stroke: #fff4dc;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 2 60 1 120 3 90;
  opacity: .0;
  transform-origin: 200px 200px;
  animation: gSpin 14s linear infinite;
  transition: opacity 1s ease 1.8s;
}
.guide__ring-inner {
  stroke: rgba(255, 210, 150, .22);
  stroke-width: 1;
  stroke-dasharray: 1 7;
  transform-origin: 200px 200px;
  animation: gSpin 40s linear infinite reverse;
}
.guide.is-in .guide__ring { opacity: 1; transform: translateX(-50%) rotate(-90deg) scale(1); }
.guide.is-in .guide__ring-main { stroke-dashoffset: 0; }
.guide.is-in .guide__ring-spark { opacity: .9; }
.guide.is-in .guide__ring-halo { animation: gHalo 4.5s ease-in-out 2s infinite; }

.guide__photo,
.guide__silhouette {
  position: absolute;
  left: 50%; bottom: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: bottom center;
  transform: translate(-50%, 30px);
  opacity: 0;
  transition: opacity 1.1s var(--ease, ease) .3s, transform 1.3s var(--ease, ease) .3s;
  z-index: 1;
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent);
          mask-image: linear-gradient(to bottom, #000 82%, transparent);
}
.guide.is-in .guide__photo,
.guide.is-in .guide__silhouette { opacity: 1; transform: translate(-50%, 0); }

.guide__silhouette { display: none; width: 78%; height: 84%; }
.guide__silhouette path { fill: rgba(170, 120, 230, .18); stroke: rgba(247, 196, 124, .35); stroke-width: 1.5; }
.guide__stage.no-photo .guide__photo { display: none; }
.guide__stage.no-photo .guide__silhouette { display: block; }

.guide__flame {                            /* purple energy pooling at the base */
  position: absolute;
  left: -18%; right: 30%; bottom: -6%;
  height: 46%;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(50% 60% at 30% 80%, rgba(190, 90, 255, .55), transparent 70%),
    radial-gradient(40% 50% at 60% 90%, rgba(130, 40, 255, .45), transparent 70%);
  mix-blend-mode: screen;   /* the gradients are already soft: filter blur dropped (it re-painted every frame of gFlame) */
  will-change: transform, opacity;
  animation: gFlame 6s ease-in-out infinite;
}

/* ---------- copy ---------- */
.guide__content { padding-bottom: clamp(24px, 3vw, 48px); }
.guide__title {
  margin: 0;
  font-family: "Crimson Text", Georgia, serif;
  font-weight: 400;
  font-size: clamp(28px, 2.9vw, 42px);
  line-height: 1.2;
  color: #f7f3fb;
}
.guide__dash { color: rgba(247, 243, 251, .7); }
.guide__name {
  background: linear-gradient(100deg, #f7f3fb 0%, #f7f3fb 40%, #f7c47c 50%, #f7f3fb 60%, #f7f3fb 100%);
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.guide.is-in .guide__name { animation: gShine 5s ease-in-out 1.4s infinite; }
.guide__roles {
  margin: 14px 0 0;
  font-family: var(--sans, "Inter", system-ui, sans-serif);
  font-size: clamp(15px, 1.3vw, 18px);
  color: #e2dcea;
  letter-spacing: .01em;
}
/* two clean lines: "Psychic reader | Life pattern mentor" / "Co-founder, Ppure Energy Gurukul" — a role never breaks inside */
.guide__role { white-space: nowrap; }
.guide__role--org { display: block; margin-top: 4px; }
.guide__sep { color: rgba(226, 220, 234, .5); margin: 0 .55em; }

.guide__title, .guide__roles {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s var(--ease, ease), transform .9s var(--ease, ease);
}
.guide__roles { transition-delay: .15s; }
.guide.is-in .guide__title, .guide.is-in .guide__roles { opacity: 1; transform: none; }

/* ---------- stat cards ---------- */
.guide__stats {
  list-style: none;
  margin: clamp(20px, 2.4vw, 30px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 16px);
  max-width: 470px;
}
.gstat {
  --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg; --lift: 0px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 8px 14px;
  border-radius: 14px;
  overflow: hidden;
  outline: none;
  background:
    radial-gradient(120px 120px at var(--mx) var(--my), rgba(170, 90, 255, .22), transparent 70%),
    linear-gradient(160deg, rgba(60, 22, 100, .55), rgba(22, 10, 40, .55));
  border: 1px solid rgba(190, 130, 255, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 10px 30px rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  transform: perspective(700px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(24px);
  opacity: 0;
  transition: opacity .8s var(--ease, ease), transform .8s var(--ease, ease), border-color .4s, box-shadow .4s;
  transform-style: preserve-3d;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.gstat::before {                           /* animated gradient rim */
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, rgba(247, 196, 124, .9) 80%, rgba(190, 120, 255, .9) 88%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.gstat:hover::before, .gstat:focus-visible::before { opacity: 1; animation: gRim 3s linear infinite; }
.gstat:hover, .gstat:focus-visible {
  --lift: -6px;
  border-color: rgba(210, 160, 255, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 16px 44px rgba(110, 30, 220, .35);
}
.guide.is-in .gstat { opacity: 1; transform: perspective(700px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift)); }
.guide.is-in .gstat:nth-child(1) { transition-delay: .35s, .35s, 0s, 0s; }
.guide.is-in .gstat:nth-child(2) { transition-delay: .5s, .5s, 0s, 0s; }
.guide.is-in .gstat:nth-child(3) { transition-delay: .65s, .65s, 0s, 0s; }
.guide.is-in .gstat.is-tilting { transition-delay: 0s; transition-duration: .15s, .15s, .4s, .4s; }

.gstat__icon {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  transform: translateZ(30px);
}
.gstat__icon svg { width: 100%; height: 100%; overflow: visible; transition: transform .5s var(--ease, ease), filter .5s; }
.gstat:hover .gstat__icon svg { transform: scale(1.12); }

.gstat__icon--lotus .lp {
  fill: none;
  stroke: #c58bff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  filter: drop-shadow(0 0 4px rgba(190, 120, 255, .8));
  transition: stroke-dashoffset 1.6s var(--ease, ease) .7s;
}
.guide.is-in .gstat__icon--lotus .lp { stroke-dashoffset: 0; }
.gstat:hover .gstat__icon--lotus svg { animation: gBloom 1.6s ease-in-out infinite; }

.gstat__icon--star .sc { fill: rgba(140, 50, 240, .55); stroke: #c58bff; stroke-width: 1.6; filter: drop-shadow(0 0 6px rgba(160, 80, 255, .7)); }
.gstat__icon--star .ss { fill: #f7c47c; stroke: #ffe1a8; stroke-width: .8; stroke-linejoin: round; transform-origin: 24px 24px; }
.gstat:hover .gstat__icon--star .ss { animation: gStar 1.2s var(--ease, ease); }
.gstat__icon--star svg { animation: gTwinkle 3.5s ease-in-out infinite; }

.gstat__icon--google svg { width: 32px; height: 32px; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .15)); }
.gstat:hover .gstat__icon--google svg { transform: scale(1.12) rotate(360deg); transition-duration: .9s; }

.gstat__num {
  margin-top: 8px;
  font-family: var(--sans, "Inter", system-ui, sans-serif);
  font-weight: 700;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.2;
  color: #f7f3fb;
  font-variant-numeric: tabular-nums;
  transform: translateZ(20px);
}
.gstat__label {
  margin-top: 2px;
  font-family: var(--sans, "Inter", system-ui, sans-serif);
  font-size: clamp(12px, .95vw, 13.5px);
  line-height: 1.3;
  color: #cfc9d8;
  transform: translateZ(14px);
}

/* ---------- keyframes ---------- */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes gRim     { to { --ang: 360deg; } }
@keyframes gSpin    { to { transform: rotate(360deg); } }
@keyframes gHalo    { 0%, 100% { stroke: rgba(247, 196, 124, .14); } 50% { stroke: rgba(247, 196, 124, .32); } }
@keyframes gFlame   { 0%, 100% { transform: translate(0, 0) scale(1); opacity: .85; } 50% { transform: translate(4%, -4%) scale(1.08); opacity: 1; } }
@keyframes gShine   { 0% { background-position: 100% 0; } 40%, 100% { background-position: 0 0; } }
@keyframes gBloom   { 0%, 100% { transform: scale(1.12); } 50% { transform: scale(1.2); filter: drop-shadow(0 0 8px rgba(200, 140, 255, .9)); } }
@keyframes gStar    { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(144deg) scale(1.25); } 100% { transform: rotate(216deg) scale(1); } }
@keyframes gTwinkle { 0%, 100% { filter: none; } 50% { filter: drop-shadow(0 0 6px rgba(247, 196, 124, .7)); } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .guide__inner { grid-template-columns: 1fr; padding-top: 32px; }
  .guide__content { order: -1; text-align: center; padding-bottom: 0; }
  .guide__stats { margin-left: auto; margin-right: auto; }
  .guide__stage { width: min(100%, 520px); }
}
@media (max-width: 560px) {
  .guide__stats { gap: 10px; }
  .gstat { padding: 16px 6px 14px; border-radius: 14px; }
  .gstat__icon { width: 36px; height: 36px; }
  .gstat__icon--google svg { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .guide *, .guide *::before { animation: none !important; transition: none !important; }
  .guide__title, .guide__roles, .gstat, .guide__photo, .guide__silhouette, .guide__ring { opacity: 1 !important; }
  .guide__ring-main, .gstat__icon--lotus .lp { stroke-dashoffset: 0 !important; }
}

/* ---------- photo artwork already carries its own ring + smoke ---------- */
.guide__ring { display: none; }
.guide__stage::before {                    /* pulsing light behind the halo in the artwork */
  content: "";
  position: absolute;
  left: 50%; top: 45%;                      /* centred on the round golden frame in the artwork */
  width: 72%; aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(.7);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 196, 124, .28) 0%, rgba(170, 80, 255, .32) 40%, transparent 70%);   /* already soft: no filter blur */
  opacity: 0;
  transition: opacity 1.4s var(--ease, ease), transform 1.6s var(--ease, ease);
  z-index: 0;
  pointer-events: none;
}
.guide.is-in .guide__stage::before { opacity: 1; transform: translate(-50%, -50%) scale(1); animation: gPulse 5s ease-in-out 1.6s infinite; }
.guide.is-in .guide__photo { animation: gBreathe 7s ease-in-out 1.5s infinite; }
.guide__flame {
  left: -10%; right: 40%; bottom: -4%; height: 34%; opacity: .7;
  /* fade every edge to nothing (the gradients alone left a hard box edge once the filter blur was dropped) */
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent);
          mask-image: radial-gradient(closest-side, #000 35%, transparent);
}
@keyframes gPulse   { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .85; } 50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; } }
/* transform only: an animated drop-shadow on this large image re-painted it every frame */
@keyframes gBreathe { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -6px); } }
@media (prefers-reduced-motion: reduce) { .guide__stage::before { opacity: 1 !important; } }

/* ---------- stat card extras: shine sweep, click ripple, pop ---------- */
.gstat::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .14), transparent);
  transform: skewX(-18deg) translateX(0);
  pointer-events: none;
}
.gstat:hover::after, .gstat:focus-visible::after { animation: gSweep .9s var(--ease, ease); }
.gstat:focus-visible { border-color: rgba(247, 196, 124, .7); }
.gstat.is-pop .gstat__num { animation: gPop .5s var(--ease, ease); }
.gstat__ripple {
  position: absolute;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 170, 255, .55), rgba(170, 90, 255, 0) 70%);
  transform: scale(0);
  animation: gRipple .7s ease-out forwards;
  pointer-events: none;
}
@keyframes gSweep  { to { transform: skewX(-18deg) translateX(420%); } }
@keyframes gPop    { 0% { transform: translateZ(20px) scale(1); } 40% { transform: translateZ(20px) scale(1.25); color: #f7c47c; } 100% { transform: translateZ(20px) scale(1); } }
@keyframes gRipple { to { transform: scale(22); opacity: 0; } }

/* =========================================================
   Smoke reveal (guide.js adds .smk, splits copy into .smk-c chars, adds .guide__puff)
   ========================================================= */
/* copy: the per-character animation replaces the old fade/slide */
.guide.smk .guide__title,
.guide.smk .guide__roles,
.guide.smk .guide__bio { opacity: 1; transform: none; transition: none; }
.smk-w { display: inline-block; white-space: nowrap; }
.smk-c { display: inline-block; opacity: 0; will-change: transform, opacity, filter; }
.guide__name .smk-c { color: #f7f3fb; }          /* the gradient text-clip comes back once the markup is restored */
.guide.is-in .smk-c { animation: gSmokeChar 1.1s cubic-bezier(.2, .7, .2, 1) var(--sd, 0s) both; }
@keyframes gSmokeChar {
  0%   { opacity: 0; filter: blur(6px); transform: translate(var(--sx), var(--sy)) rotate(var(--sr)) scale(1.2); text-shadow: 0 0 10px rgba(200, 150, 255, .5); }
  50%  { opacity: .6; filter: blur(2px); text-shadow: 0 0 6px rgba(200, 150, 255, .3); }
  100% { opacity: 1; filter: blur(0); transform: none; text-shadow: 0 0 0 rgba(200, 150, 255, 0); }
}

/* portrait: clears out of a blurred, glowing haze */
.guide.smk .guide__photo {
  filter: blur(8px) brightness(1.12) saturate(.85);
  transition: opacity 1.2s var(--ease, ease) .2s, transform 1.4s var(--ease, ease) .2s, filter 1.4s var(--ease, ease) .2s;
}
.guide.smk.is-in .guide__photo { filter: none; }

/* smoke puffs that billow up and dissolve over the portrait */
.guide__puff {
  position: absolute;
  left: var(--pl); top: var(--pt);
  width: var(--ps); aspect-ratio: 1;
  border-radius: 50%;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(circle at 40% 45%, hsla(var(--ph), 70%, 85%, .28), transparent 55%),
    radial-gradient(circle at 62% 60%, hsla(var(--ph), 80%, 70%, .2), transparent 60%);
  transform: translate(-50%, -50%) scale(.6);
  opacity: 0;
  mix-blend-mode: screen;
}
.guide.is-in .guide__puff { animation: gPuff 1.8s ease-out var(--pd) both; }
@keyframes gPuff {
  0%   { opacity: 0;   transform: translate(-50%, -50%) scale(.6); }
  25%  { opacity: .6; }
  100% { opacity: 0;   transform: translate(calc(-50% + var(--px2)), calc(-50% - 30px)) scale(1.5); }
}

/* stat cards + CTA drift in from smoke */
.guide.smk .gstat { filter: blur(6px); transition: opacity 1.2s var(--ease, ease), transform 1.2s var(--ease, ease), filter 1.4s var(--ease, ease), border-color .4s, box-shadow .4s; }
.guide.smk.is-in .gstat { filter: none; }
.guide.smk.is-in .gstat:nth-child(1) { transition-delay: 1.3s, 1.3s, 1.3s, 0s, 0s; }
.guide.smk.is-in .gstat:nth-child(2) { transition-delay: 1.5s, 1.5s, 1.5s, 0s, 0s; }
.guide.smk.is-in .gstat:nth-child(3) { transition-delay: 1.7s, 1.7s, 1.7s, 0s, 0s; }
.guide.smk.is-in .gstat.is-tilting { transition-delay: 0s; transition-duration: .15s, .15s, 0s, .4s, .4s; }
.guide.smk .guide__cta {
  opacity: 0; filter: blur(6px); transform: translateY(-8px);
  transition: opacity 1.3s var(--ease, ease) 2s, filter 1.5s var(--ease, ease) 2s, transform 1.5s var(--ease, ease) 2s;
}
.guide.smk.is-in .guide__cta { opacity: 1; filter: none; transform: none; }
