/* Why 144? Iboga, the Kundalini and the Spiral of the New Earth.
   Sister of the divine channel article: it loads after transcend.css and divine-channel.css and keeps their two
   houses (The Iboga Source night, the Heaven on Earth marble dawn). Its own pieces: the two-part title, the
   language pill, the In short box, the paintings, the three windows of night where the light animations live,
   her story's review frame, the two doors, the sources, and the rising line: seven lotus points on the left
   that light up from the root as you read. */

/* ---------- the title in two parts ---------- */
.dc-hero h1.k-h1{font:inherit;color:inherit}
.k-h1-big{display:block;font:600 clamp(3.2rem, 8.4vw, 6.4rem)/.98 var(--display);letter-spacing:.01em;color:var(--bone)}
.k-h1-sub{display:block;margin-top:.45em;font:500 clamp(1.2rem, 2.5vw, 1.85rem)/1.28 var(--display);letter-spacing:.035em;color:var(--sand-hi);text-wrap:balance;max-width:24ch}
.k-read{display:block;margin-top:3px;color:var(--dust);font-size:.84rem}

/* ---------- the language pill (top right, saved choice, ?lang=es|fr) ---------- */
.lang{position:absolute;z-index:6;top:calc(env(safe-area-inset-top, 0px) + 104px);right:var(--gut-r);display:flex;gap:2px;padding:3px;
  border-radius:100px;background:rgba(14,11,8,.55);box-shadow:0 0 0 1px rgba(217,173,112,.38);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.lang button{font:600 .76rem/1 var(--ui);letter-spacing:.08em;color:var(--dust);background:transparent;border:0;border-radius:100px;padding:8px 11px;cursor:pointer;min-width:40px}
.lang button:hover{color:var(--bone)}
.lang button[aria-pressed="true"]{background:var(--sand);color:#1a1206}
@media (max-width:640px){
  .lang{top:calc(env(safe-area-inset-top, 0px) + 94px)}
  .dc-article .dc-hero{padding-top:calc(env(safe-area-inset-top, 0px) + 152px)}
}

/* ---------- In short ---------- */
.k-short{margin-top:2.2em;padding:clamp(22px, 3vw, 32px) clamp(22px, 3vw, 36px);border-radius:22px;
  background:linear-gradient(180deg,#fff,rgba(255,250,240,.7));box-shadow:0 0 0 1px var(--rule),0 26px 50px -38px rgba(154,86,0,.5)}
.k-short-title{font:500 .78rem/1.4 var(--display);letter-spacing:.24em;text-transform:uppercase;color:var(--gold-text);margin-bottom:.9em}
.k-short ul{margin:0;padding:0;list-style:none;display:grid;gap:.6em}
.k-short li{position:relative;padding-left:1.5em;line-height:1.55}
.k-short li::before{content:"";position:absolute;left:.15em;top:.62em;width:7px;height:7px;transform:rotate(45deg);border:1px solid var(--honey);background:#fff6df}

/* ---------- sections ---------- */
.k-sec{padding-top:clamp(56px, 7vw, 92px)}
.k-sec h2{margin-bottom:.7em}
.dc-body .k-sec .land{margin-top:1.1em}
.k-petals{margin:.9em 0 0;padding:0;list-style:none;display:grid;gap:.35em}
.k-petals li{position:relative;padding-left:1.5em}
.k-petals li::before{content:"";position:absolute;left:.2em;top:.66em;width:6px;height:6px;border-radius:50%;background:var(--honey);box-shadow:0 0 10px rgba(227,165,58,.8)}
.dc-body .k-petals + p,.dc-body .k-fig + p,.dc-body .k-anim + p,.dc-body .k-short + p{margin-top:1.5em}

/* ---------- the paintings ---------- */
.k-fig{margin:2.3em 0 0}
.k-fig img{display:block;width:100%;height:auto;border-radius:22px;box-shadow:0 0 0 1px rgba(154,86,0,.14),0 34px 64px -42px rgba(14,11,8,.75)}
.k-fig figcaption,.k-anim figcaption{margin-top:.75em;font:italic 500 1.12rem/1.4 var(--serif);color:var(--gold-text);text-align:center;text-wrap:balance}
@media (min-width:980px){.k-fig.wide,.k-anim{margin-left:-70px;margin-right:-70px}}

/* ---------- the windows of night: the light animations ---------- */
.k-anim{margin-top:2.5em}
.anim-eyebrow{font:500 .76rem/1.4 var(--display);letter-spacing:.24em;text-transform:uppercase;color:var(--gold-text);margin-bottom:.8em;
  display:flex;align-items:center;gap:.8em}
.anim-eyebrow::before{content:"";width:7px;height:7px;transform:rotate(45deg);border:1px solid var(--honey);flex:none}
.anim-frame{position:relative;border-radius:24px;overflow:hidden;background:#0c1124;
  box-shadow:0 0 0 1px rgba(154,86,0,.28),0 0 0 7px rgba(255,255,255,.55),0 0 0 8px rgba(154,86,0,.14),0 44px 84px -50px rgba(14,11,8,.95)}
.k-anim canvas{display:block;width:100%;aspect-ratio:16/11;touch-action:manipulation}
.k-anim[data-anim="petals"] canvas{aspect-ratio:4/5}
.k-anim[data-anim="turning"] canvas{aspect-ratio:1/1}
@media (min-width:700px){.k-anim[data-anim="petals"] canvas{aspect-ratio:6/5}.k-anim[data-anim="turning"] canvas{aspect-ratio:16/11}}
.k-anim[data-anim="forks"] canvas{cursor:pointer}
.anim-row{display:flex;align-items:flex-start;justify-content:center;gap:14px;margin-top:.2em}
.anim-row figcaption{flex:1;min-width:0}
.anim-btn{flex:none;margin-top:.7em;display:inline-flex;align-items:center;gap:7px;border:0;border-radius:100px;padding:7px 13px;cursor:pointer;
  font:600 .78rem/1 var(--ui);letter-spacing:.04em;color:var(--gold-text);background:#fff;box-shadow:0 0 0 1px var(--rule)}
.anim-btn:hover{box-shadow:0 0 0 1px var(--honey),0 8px 22px -10px rgba(154,86,0,.5)}
.anim-btn svg{width:14px;height:14px}

/* ---------- her story, framed for review until she says yes ---------- */
.k-gate{margin-top:clamp(56px, 7vw, 92px);padding:clamp(20px, 2.6vw, 28px) clamp(20px, 2.6vw, 30px) clamp(24px, 3vw, 32px);border-radius:22px;
  border:1.5px dashed rgba(160,82,26,.55);background:rgba(255,255,255,.6)}
.k-gate .k-sec{padding-top:0}
.k-gate-label{font:600 .72rem/1.45 var(--display);letter-spacing:.18em;text-transform:uppercase;color:#a0521a;margin-bottom:1.1em}

/* ---------- the two doors: the book and the retreat ---------- */
.k-doors .door-heaven .door-art{border-radius:18px;aspect-ratio:16/10;background:linear-gradient(135deg,#fbf1dc,#fff)}
.k-doors .door-heaven .door-art img{object-fit:contain;object-position:50% 50%;padding:14px}
.k-doors .door-ceremony .door-art img{object-position:50% 46%}

/* ---------- the close, the sources ---------- */
.k-close{margin-top:clamp(56px, 7vw, 90px)}
.k-close .truth + p{margin-top:.8em}
.k-close .sig{margin-top:.6em;font:italic 600 1.4rem/1 var(--serif);color:var(--gold-text)}
.k-sources{margin-top:clamp(44px, 5vw, 64px);padding-top:20px;border-top:1px solid var(--rule)}
.dc-body .k-sources h2{font:600 1.35rem/1.2 var(--serif);margin-bottom:.5em}
.k-sources p{font-size:.92rem;line-height:1.7;color:var(--ink-2)}

/* ---------- the rising line: seven lotus points light up from the root as you read (wide screens) ---------- */
.rise{display:none}
@media (min-width:1180px){
  .rise{display:block;position:fixed;z-index:5;left:max(26px, calc(50vw - 590px));top:24vh;height:54vh;width:14px;pointer-events:none;opacity:0;transition:opacity .7s ease}
  .rise.on{opacity:1}
  .rise::before{content:"";position:absolute;left:6px;top:0;bottom:0;width:2px;border-radius:2px;background:linear-gradient(180deg,rgba(154,86,0,0),var(--rule) 8%,var(--rule) 92%,rgba(154,86,0,0))}
  .rise b{position:absolute;left:6px;bottom:0;width:2px;height:100%;border-radius:2px;transform-origin:bottom;transform:scaleY(var(--p, 0));
    background:linear-gradient(0deg,#fff7e3,var(--honey));box-shadow:0 0 14px rgba(227,165,58,.8)}
  .rise i{position:absolute;left:2px;width:10px;height:10px;margin-bottom:-5px;border-radius:50%;background:var(--ivory);
    box-shadow:0 0 0 1px rgba(154,86,0,.35);transition:background .6s ease,box-shadow .6s ease}
  .rise i.lit{background:#fff3d6;box-shadow:0 0 0 1px var(--honey),0 0 16px rgba(227,165,58,.9)}
}

@media (max-width:640px){
  .k-fig img{border-radius:16px}
  .anim-frame{border-radius:18px}
  .anim-row{flex-direction:column;align-items:center;gap:0}
}
@media (prefers-reduced-motion: reduce){.rise,.rise i{transition:none}}
