/* RitamSage round 2 · home concept "The Chart" (home-chart.css). Requires shared/base.css. */

/* ---------- hero ---------- */
.hero{position:relative;padding:clamp(28px,5vw,72px) 0 clamp(40px,6vw,88px)}
.hero-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:clamp(24px,4vw,72px);align-items:center;position:relative}
.hero h1{font-size:clamp(46px,6.1vw,94px);line-height:.98;letter-spacing:-.018em;margin:6px 0 26px;max-width:12ch}
.hero h1 em{font-style:italic;color:var(--e700);font-weight:500}
.hero .lede{max-width:56ch}
.ctas{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:30px}
.hero-listen{display:flex;align-items:center;gap:16px;margin-top:34px;padding-top:22px;border-top:1px solid var(--hair);max-width:560px}
.hero-listen p{margin:0;display:grid;gap:2px;line-height:1.3}
.hero-listen .k{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--e700)}
.hero-listen b{font-family:var(--serif);font-size:23px;font-weight:600}
.hero-listen .lab{font-size:11.5px;color:var(--muted)}
.listen{flex:none;width:56px;height:56px;border-radius:50%;border:1px solid var(--hair-strong);background:#fff;color:var(--e900);display:grid;place-items:center;cursor:pointer;position:relative;transition:background .25s,color .25s,transform .25s var(--ease)}
.listen:hover{background:var(--e100);transform:scale(1.04)}
.listen::after{content:"";position:absolute;inset:-7px;border-radius:50%;border:1px solid var(--hair);opacity:0}
.listen[aria-pressed=true]{background:var(--e900);color:#fff;border-color:var(--e900)}
.listen[aria-pressed=true]::after{animation:ring 2.4s ease-out infinite}
@keyframes ring{0%{transform:scale(.9);opacity:.9}100%{transform:scale(1.35);opacity:0}}
[data-play] svg{width:20px;height:20px}
[data-play] .i-pause{display:none}
[data-play][aria-pressed=true] .i-play{display:none}
[data-play][aria-pressed=true] .i-pause{display:block}
.btn[data-play] .i-pause,.btn[data-play] .i-play{width:16px;height:16px}

.hero-fig{position:relative;margin:0;aspect-ratio:1/1;display:grid;place-items:center;max-width:640px;justify-self:end;width:100%}
.hero-dial{position:absolute;inset:-6%;width:112%;height:112%;max-width:none;overflow:visible}
.hero-dial circle{fill:none}
.hd-r1{stroke:var(--hair-strong);stroke-width:1}
.hd-r2{stroke:var(--hair);stroke-width:1}
.hd-ticks line{stroke:var(--e500);stroke-width:1;opacity:.5}
.hd-ticks line.maj{opacity:.9;stroke:var(--e700)}
.hd-ticks text{font:500 10px var(--mono);fill:var(--muted);letter-spacing:.06em}
.hd-bodies text{font:500 11px var(--mono);fill:var(--e900);letter-spacing:.04em}
.tumburu{position:absolute;left:12%;bottom:20%;width:80%;height:auto}
.hd-ground{stroke:var(--e700);stroke-width:1;opacity:.55}
.hero-dial{-webkit-mask-image:linear-gradient(180deg,#000 76.6%,rgba(0,0,0,.3) 78.6%,rgba(0,0,0,.1) 100%);mask-image:linear-gradient(180deg,#000 76.6%,rgba(0,0,0,.3) 78.6%,rgba(0,0,0,.1) 100%)}
.hero-fig figcaption{position:absolute;left:0;right:0;top:82.5%;text-align:center;font-size:13.5px;color:var(--muted);line-height:1.5}
.hero-fig figcaption .deva{color:var(--copper);margin-right:4px}
.hd-cap{display:block;font-size:11px;letter-spacing:.06em;color:var(--e700)}
.scroll-cue{position:absolute;left:var(--gutter);bottom:calc(-1 * clamp(40px,6vw,88px));width:1px;height:64px;background:linear-gradient(var(--hair-strong),transparent)}
.scroll-cue i{position:absolute;left:-4px;top:0;width:9px;height:9px;border-radius:50%;background:var(--amber);box-shadow:0 0 0 4px rgba(233,162,26,.18),0 0 18px 4px rgba(233,162,26,.45);animation:cue 2.6s var(--ease) infinite}
@keyframes cue{0%{transform:translateY(0);opacity:0}15%{opacity:1}80%{opacity:1}100%{transform:translateY(54px);opacity:0}}
/* tablets and phones: the headline first, then Tumburu sized to the screen so the CTAs stay above the fold */
@media (max-width:900px){
  .hero{padding:clamp(18px,3.2svh,40px) 0 clamp(36px,6vw,64px)}
  .hero-grid{display:flex;flex-direction:column;align-items:stretch;gap:0}
  .hero-copy{display:contents}
  .hero-copy>.kicker{order:1;margin-bottom:10px}
  .hero h1{order:2;max-width:14ch;margin:0 0 6px}
  .hero-fig{order:3;width:min(420px,calc((100vw - 2 * var(--gutter)) / 1.14),calc(100svh - 370px));min-width:220px;max-width:none;justify-self:auto;align-self:center;margin:6px 0 0}
  .hero .ctas{order:4;margin-top:14px}
  .hero .lede{order:5;margin:26px 0 0}
  .hero-listen{order:6}
  .scroll-cue{display:none}
  /* the figure's caption sits under Tumburu's ground line, inside the square */
  .hero-fig figcaption{top:auto;bottom:0;left:50%;right:auto;width:calc(100vw - 2 * var(--gutter));max-width:520px;transform:translateX(-50%);font-size:12.5px;line-height:1.4}
  .hero-fig figcaption .hd-cap{font-size:10.5px;margin-top:2px}
}
@media (max-width:560px){
  .hero h1{font-size:clamp(40px,11.4vw,48px);line-height:1;margin-bottom:4px}
  .hero-fig figcaption{font-size:12px}
  .hero .ctas{gap:10px;flex-wrap:nowrap}
  .hero .ctas .gp{padding:9px 14px 9px 11px;gap:10px;flex:none}
  .hero .ctas .gp b{font-size:16px}
  .hero .ctas .btn-ghost{padding:0 16px;min-height:48px;font-size:14px;white-space:normal;text-align:center;line-height:1.2;flex:1 1 auto;justify-content:center}
  .hero .lede{font-size:17px}
  .hero-listen{margin-top:24px;padding-top:18px}
  .hero-listen b{font-size:21px}
}

/* ---------- Rtam ---------- */
.ritam{padding:clamp(72px,9vw,140px) 0 clamp(40px,6vw,80px);border-top:1px solid var(--hair);position:relative}
.ritam-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(28px,5vw,88px);align-items:start}
.ritam .big{font-size:clamp(110px,15vw,220px);line-height:1.1;margin:0;color:var(--e900);letter-spacing:0}
.ritam h2{font-size:clamp(28px,2.6vw,38px);display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 16px;margin-top:4px}
.ritam .iast{font-style:italic}
.ritam .gloss{font:500 12px/1.4 var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--e700)}
.ritam-text .lede{font-size:clamp(19px,1.6vw,22px);color:var(--ink);max-width:58ch}
.ritam blockquote{margin:30px 0 0;padding:24px 0 0;border-top:1px solid var(--hair)}
.ritam .sk{font-size:clamp(20px,2vw,27px);color:var(--e700);line-height:1.6;margin:0 0 6px}
.ritam .tr{font-family:var(--serif);font-style:italic;font-size:clamp(23px,2.3vw,31px);line-height:1.25;margin:0 0 8px}
.ritam cite{font-style:normal;font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.cycles{margin:clamp(40px,6vw,80px) 0 0;display:grid;gap:0}
.cyc-row,.cyc-zrow{display:grid;grid-template-columns:clamp(150px,18vw,220px) minmax(0,1fr);gap:clamp(16px,3vw,40px);align-items:center}
.cyc-lab{margin:0;display:grid;gap:2px}
.cyc-lab b{font-family:var(--serif,'Cormorant Garamond',serif);font-weight:500;font-size:clamp(22px,2.2vw,28px);line-height:1.1;color:var(--ink)}
.cyc-lab span{font-size:14px;color:var(--muted)}
.cyc-plot{position:relative;height:clamp(64px,7vw,92px);margin-bottom:26px}
.cyc-plot svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.cyc-axis{stroke:var(--hair);stroke-width:1;vector-effect:non-scaling-stroke}
.cyc-win{fill:var(--e100,#DCEDDD);opacity:.75}
.cy{fill:none;stroke-width:1.8;vector-effect:non-scaling-stroke;stroke-linecap:round}
.cy-year{stroke:var(--e900,#053426)}
.cy-month{stroke:var(--e500,#5FA584)}
.cy-day{stroke:var(--amber,#E9A21A);stroke-width:2}
.cyc-now{position:absolute;width:11px;height:11px;margin:-5.5px 0 0 -5.5px;border-radius:50%;background:var(--copper,#A35B1A);box-shadow:0 0 0 4px rgba(163,91,26,.18);left:0;top:50%}
.cyc-ticks{position:absolute;left:0;right:0;top:100%;height:20px;margin-top:6px;font:500 11px/1 var(--mono,'IBM Plex Mono',monospace);letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.cyc-ticks span{position:absolute;transform:translateX(-50%);white-space:nowrap}
.cyc-ticks span:first-child{transform:none}.cyc-ticks span:last-child{transform:translateX(-100%)}
.cyc-ticks[data-ticks=year] span:first-child,.cyc-ticks[data-ticks=year] span:last-child{transform:translateX(-50%)}
.cyc-zrow svg{width:100%;height:clamp(28px,3.2vw,44px);display:block;margin:6px 0 10px;overflow:visible}
.cyc-zoom path{fill:rgba(220,237,221,.45);stroke:var(--e300,#A3CFB5);stroke-width:1;vector-effect:non-scaling-stroke;stroke-dasharray:3 3}
.cyc-cap{margin-top:4px;font-size:14px;color:var(--muted);max-width:62ch}
@media (max-width:640px){.cyc-row,.cyc-zrow{grid-template-columns:1fr;gap:6px}.cyc-zrow>span{display:none}.cyc-ticks{font-size:9.5px;letter-spacing:.02em}.cyc-ticks[data-ticks=year] span:nth-child(even),.cyc-ticks[data-ticks=month] span:nth-child(even){top:13px}.cyc-plot{margin-bottom:34px}}
.k-day{background:var(--amber)}.k-month{background:var(--e500)}.k-year{background:var(--e900)}
.why{display:grid;grid-template-columns:1fr 1.2fr 1fr;gap:clamp(20px,4vw,56px);align-items:center;margin-top:clamp(40px,6vw,80px);padding-top:clamp(28px,4vw,48px);border-top:1px solid var(--hair)}
.why p{margin:0;color:var(--muted)}
.why .sage{font-size:clamp(24px,2.3vw,32px);line-height:1.2;color:var(--e900)}
.why-q2{text-align:right}
@media (max-width:900px){.ritam-grid{grid-template-columns:1fr}.why{grid-template-columns:1fr}.why-q2{text-align:left}}

/* ---------- the story ---------- */
.story{position:relative;padding-top:clamp(64px,8vw,120px);background:linear-gradient(180deg,var(--paper) 0%,var(--paper-hi) 18%,var(--paper-hi) 82%,var(--paper) 100%)}
.story-intro{max-width:var(--wrap)}
.story-intro h2{max-width:16ch}
.story-intro .lede{margin-top:18px}
.story-track{position:relative}
.story-grid{display:grid;grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr);gap:clamp(20px,4vw,64px);align-items:center;height:100%}
/* static / no-JS: steps listed, stage hidden */
.steps{list-style:none;margin:0;padding:0;display:grid;gap:30px}
.step h3{font-size:clamp(28px,2.7vw,40px);margin-bottom:12px}
.step .kicker .no{color:var(--copper)}
.step-p{color:var(--muted);font-size:17.5px;max-width:46ch}
.step-p b{color:var(--ink);font-weight:600}
.step-extra{display:flex;flex-direction:column;gap:8px;align-items:flex-start;margin:4px 0 0}
.step-extra .mono{font-size:11.5px;letter-spacing:.03em;color:var(--muted);max-width:46ch;line-height:1.5}
.lvl-line{font-family:var(--serif);font-size:24px;line-height:1.2}
.lvl-line b{font-weight:600;color:var(--e700)}
.rail{display:none}
.story-stage{display:none}
html.no-js .story-track,.story.static .story-track{padding:40px 0 0}
.story.static .story-stage{display:block}

/* live (JS, motion allowed) */
.story.live .story-track{height:var(--track,820vh)}
.story.live .story-sticky{position:sticky;top:calc(var(--head-h) + 7px);height:calc(100vh - var(--head-h) - 7px);height:calc(100svh - var(--head-h) - 7px);overflow:hidden}
.story.live .steps{display:grid;gap:0}
.story.live .step{grid-area:1/1;opacity:0;transform:translate3d(0,14px,0);transition:opacity .55s var(--ease),transform .7s var(--ease);pointer-events:none}
.story.live .step.on{opacity:1;transform:none;pointer-events:auto}
.story.live .story-stage{display:grid;place-items:center;height:100%;min-height:0}
.story.live .rail{display:flex;list-style:none;margin:40px 0 0;padding:0;gap:0;position:relative;max-width:520px}
.rail::before{content:"";position:absolute;left:5px;right:5px;top:5px;height:1px;background:var(--hair-strong)}
.rail::after{content:"";position:absolute;left:5px;right:5px;top:5px;height:1px;background:var(--e700);transform-origin:0 50%;transform:scaleX(var(--rp,0))}
.rail li{flex:1;position:relative;z-index:1}
.rail li:last-child{flex:0 0 auto}
.rail button{background:none;border:0;padding:0;cursor:pointer;display:flex;flex-direction:column;gap:10px;align-items:flex-start;color:var(--muted);font:500 11px/1 var(--mono);letter-spacing:.01em}
.rail button i{width:11px;height:11px;border-radius:50%;background:var(--paper);box-shadow:inset 0 0 0 1px var(--e500);transition:background .3s,box-shadow .3s,transform .3s}
.rail button.done i{background:var(--e700);box-shadow:none}
.rail button.cur i{background:var(--amber);box-shadow:0 0 0 4px rgba(233,162,26,.2);transform:scale(1.15)}
.rail button.cur{color:var(--e900)}
.rail button span{white-space:nowrap}
.rail li:last-child button{align-items:flex-end}
/* labels alternate below / above the line so neighbours never touch, however narrow the column */
@media (min-width:901px){.story.live .rail{margin-top:60px}.rail li:nth-child(even) button{flex-direction:column-reverse;margin-top:-21px}}

/* the chart */
.chart{position:relative;width:var(--cs,560px);height:var(--cs,560px);flex:none}
.chart svg.cv{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.chart .ov{position:absolute;inset:0}
.chart .el{position:absolute;left:0;top:0;will-change:transform,opacity;transform-origin:0 0}
.chart .el img{display:block;width:100%;height:100%;object-fit:contain}
.chart .sgn img{filter:drop-shadow(0 4px 6px rgba(5,52,38,.16))}
.chart .pl img{filter:drop-shadow(0 6px 8px rgba(5,52,38,.22))}
.chart .pl b{position:absolute;left:50%;top:100%;transform:translate(-50%,1px);font:600 calc(var(--cs) * .019)/1 var(--mono);letter-spacing:.04em;white-space:nowrap;color:var(--pc,var(--e900))}
.chart .nk span{position:absolute;left:50%;top:100%;transform:translate(-50%,0);font:500 9.5px/1 var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--e700);white-space:nowrap}
.chart .ctr{position:absolute;left:50%;top:50%;width:46%;transform:translate(-50%,-50%);text-align:center;pointer-events:none}
.chart .ctr .t1{font:500 10px/1.3 var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--e700)}
.chart .ctr .t2{font-family:var(--serif);font-size:calc(var(--cs) * .05);line-height:1.05;margin:4px 0;color:var(--ink)}
.chart .ctr .t3{font:500 10.5px/1.4 var(--mono);color:var(--muted);letter-spacing:.04em}
.chart .phone{--pw:calc(var(--cs) * .36);position:absolute;left:0;top:0;transform-origin:50% 50%}
.chart .phone .screen img{opacity:var(--so,0)}
.chart .phone .screen img.scr2{opacity:var(--mo,0)}
.chart .callout.np{padding-left:calc(var(--cs) * .1 + 16px);min-height:calc(var(--cs) * .1 + 28px)}
.chart .callout.np img{position:absolute;left:12px;top:14px;width:calc(var(--cs) * .1);height:calc(var(--cs) * .1);border-radius:12px;object-fit:cover}
.chart .callout .k{font-size:max(8.5px,calc(var(--cs) * .015))}
.chart.small .callout small{display:none}
.chart.small .nk:not(.moon) span{display:none} /* small charts: only the Moon's nakshatra keeps its name, neighbours would collide */
.chart.small .callout{padding:10px 12px;width:calc(var(--cs) * .42);border-radius:14px}
.chart.small .callout.np{padding-left:calc(var(--cs) * .1 + 20px)}
.chart .callout{position:absolute;left:0;top:0;width:calc(var(--cs) * .34);background:#fff;border-radius:18px;padding:14px 16px;box-shadow:0 1px 0 rgba(5,52,38,.05),0 22px 40px -24px rgba(5,52,38,.45);border:1px solid var(--hair)}
.chart .callout .k{font:500 10px/1.3 var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--e700);display:block}
.chart .callout b{font-family:var(--serif);font-size:calc(var(--cs) * .05);line-height:1.1;font-weight:600;display:block;margin:4px 0 8px}
.chart .callout .lv{display:flex;gap:4px}
.chart .callout .lv i{flex:1;height:5px;border-radius:3px;background:var(--e200)}
.chart .callout .lv i.on{background:var(--e700)}
.chart .callout small{display:block;margin-top:8px;font-size:11.5px;line-height:1.35;color:var(--muted)}
.chart .rings{position:absolute;left:0;top:0;width:calc(var(--cs) * .4);opacity:0;pointer-events:none}
.chart .rings svg{display:block;width:100%;overflow:visible}
.chart .rings path{fill:none;stroke:var(--e700);stroke-width:1.6;stroke-linecap:round;vector-effect:non-scaling-stroke;opacity:0;transform-box:fill-box;transform-origin:50% 100%}
.chart .rings path:nth-child(3){stroke:var(--amber)}
.chart .rings.sing path{animation:rise 2.6s cubic-bezier(.2,.7,.2,1) infinite}
.chart .rings.sing path:nth-child(2){animation-delay:.45s}
.chart .rings.sing path:nth-child(3){animation-delay:.9s}
.story.off .chart .rings.sing path{animation:none}
@keyframes rise{0%{opacity:0;transform:translateY(16px) scale(.7)}25%{opacity:.95}100%{opacity:0;transform:translateY(-34px) scale(1.12)}}
.chart .callout{font-size:calc(var(--cs) * .02)}
.cv text{font-family:var(--mono)}
.cv .sname{font-size:15px;letter-spacing:.06em;fill:var(--e700);font-weight:500}
.cv .nnum{font-size:13px;fill:var(--muted)}
.cv .deg{font-size:11px;fill:var(--muted)}
.cv .hnum{font-size:22px;fill:var(--muted);font-family:var(--sans)}
.cv .asc-t{font-size:14px;fill:var(--copper);font-weight:500;letter-spacing:.08em}

/* reduced motion: three finished frames */
.frames{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:40px}
.frames figure{margin:0;display:grid;justify-items:center;gap:40px;padding:40px 0 0}
.frames figcaption{font:500 11px/1.4 var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--e700)}
@media (max-width:900px){.frames{grid-template-columns:minmax(0,1fr)}}

/* ---------- the story on tablets and phones: a native story screen ----------
   chart large and still in the upper part, one chip of live data under it, a compact caption card at the bottom
   (one short line per chapter), progress as small dots. svh keeps the stage still when the browser toolbar moves. */
.step-m{display:none}
.story-chips{display:none}
@media (max-width:900px){
  .story.live .story-track{height:600vh;height:600svh}
  .story.live .story-sticky{height:calc(100vh - var(--head-h) - 7px);height:calc(100svh - var(--head-h) - 7px)}
  .story.live .story-grid{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding-top:12px;padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}
  .story.live .story-stage{order:-1;flex:1 1 auto;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:12px}
  .story.live .story-copy{flex:none;position:relative;background:#fff;border:1px solid var(--hair);border-radius:22px;padding:14px 16px 2px;box-shadow:0 1px 0 rgba(5,52,38,.04),0 18px 36px -26px rgba(5,52,38,.4)}
  .story.live .step .kicker{margin-bottom:6px;font-size:10.5px;gap:8px}
  .story.live .step .kicker .rule{flex-basis:18px}
  .story.live .step h3{font-size:clamp(23px,6.4vw,28px);line-height:1.08;margin:0 0 5px}
  .story.live .step-m{display:block;font-size:15px;line-height:1.45;color:var(--muted);margin:0;max-width:46ch}
  .story.live .step-p{position:absolute!important;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .story.live .step-extra[data-extra=grahas],.story.live #step-app .step-extra{display:none}
  .story.live .story-copy{z-index:2}
  .story.live #step-sound .step-extra{flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px 12px;margin-top:10px}
  .story.live #step-sound .step-extra .btn{min-height:44px;margin:0;flex:none;padding:0 16px}
  .story.live #step-sound .step-extra .label{flex:1 1 220px;min-width:0;font-size:10.5px;line-height:1.35;max-width:none}
  /* dots */
  .story.live .rail{margin:0 -12px 0;max-width:none;justify-content:space-between}
  .story.live .rail li,.story.live .rail li:last-child{flex:0 0 auto}
  .story.live .rail::before,.story.live .rail::after{left:20px;right:20px;top:50%}
  .story.live .rail button{width:44px;height:44px;align-items:center;justify-content:center;gap:0}
  .story.live .rail li:last-child button{align-items:center}
  .story.live .rail button span{display:none}
  .story.live .rail button i{width:8px;height:8px}
  .story.live .rail button.cur i{transform:scale(1.35)}
  /* the chip of live data under the chart */
  .story.live .story-chips{display:grid;width:100%;height:44px;flex:none;place-items:center}
  .chip-s{grid-area:1/1;margin:0;display:inline-flex;align-items:center;gap:8px;max-width:100%;height:40px;padding:0 14px;border-radius:999px;background:#fff;border:1px solid var(--hair);box-shadow:0 10px 24px -18px rgba(5,52,38,.45);font:500 14px/1 var(--sans);color:var(--ink);white-space:nowrap;overflow:hidden;opacity:0;transform:translate3d(0,8px,0);transition:opacity .45s var(--ease),transform .55s var(--ease)}
  .chip-s.on{opacity:1;transform:none}
  .chip-s .ck{font:500 10.5px/1 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--e700)}
  .chip-s .sep{width:1px;height:16px;background:var(--hair-strong);margin:0 2px}
  .chip-s img{width:30px;height:30px;margin-left:-8px;object-fit:contain;filter:var(--jade-shadow)}
  .chip-s img.dei{border-radius:50%;object-fit:cover;width:30px;height:30px;filter:none;margin-left:-9px}
  .chip-s .lv{display:inline-flex;gap:3px;margin-left:2px}
  .chip-s .lv i{width:12px;height:5px;border-radius:3px;background:var(--e200)}
  .chip-s .lv i.on{background:var(--e700)}
  /* the chart, phone mode: no labels below ~10.5px effective; the nakshatra figure and the callouts live in the chip */
  .chart.m .nk,.chart.m .callout{display:none!important}
  .chart.m .cv .sname,.chart.m .cv .deg{display:none}
  .chart.m .cv .nnum{font-size:calc(10.5px * var(--u))}
  .chart.m .cv .asc-t{font-size:calc(10.5px * var(--u))}
  .chart.m .cv .hnum{font-size:calc(12px * var(--u))}
  .chart.m .pl b{font-size:10.5px;letter-spacing:.02em;transform:translate(-50%,0)}
  .chart.m .ctr .t1,.chart.m .ctr .t3{display:none}
  .chart.m .ctr .t2{font-size:calc(var(--cs) * .062)}
}
@media (max-width:900px) and (max-height:700px){
  .story.live .step h3{font-size:22px}
  .story.live .step-m{font-size:14.5px}
  .story.live .story-copy{padding-top:12px}
}

/* ---------- bridge (the sound flowing into the live player) ---------- */
main{position:relative}
.bridge{position:absolute;left:0;top:0;width:100%;height:0;pointer-events:none;z-index:2}
.bridge svg{position:absolute;left:0;top:0;width:100%;overflow:visible}
.bridge path{fill:none;stroke-linecap:round}

/* ---------- live ---------- */
.live{position:relative;padding:clamp(64px,8vw,112px) 0 0}
.live-intro{max-width:600px;margin-bottom:clamp(20px,3vw,36px)}
.live-intro .lede{margin:0}
.pulse{width:8px;height:8px;border-radius:50%;background:var(--amber);box-shadow:0 0 0 0 rgba(233,162,26,.5);animation:pulse 2s infinite}
@keyframes pulse{70%{box-shadow:0 0 0 9px rgba(233,162,26,0)}100%{box-shadow:0 0 0 0 rgba(233,162,26,0)}}
.live-mount{position:relative;z-index:3;--lt-bleed:var(--gutter);
  --lt-bg:transparent;--lt-surface:#fff;--lt-surface-2:var(--e100);--lt-ink:var(--ink);--lt-muted:var(--muted);--lt-line:var(--line);
  --lt-accent:var(--e700);--lt-accent-2:var(--e900);--lt-accent-soft:var(--e100);--lt-night:var(--e900);--lt-amber:var(--amber);--lt-copper:var(--copper);
  --lt-radius:var(--r-xl);--lt-font-display:var(--serif);--lt-font-text:var(--sans);--lt-font-mono:var(--mono);--lt-font-deva:var(--deva)}
.live-mount .lt-player{transition:box-shadow .8s var(--ease)}
.live-mount.received .lt-player{box-shadow:0 0 0 1px var(--e300),0 30px 60px -30px rgba(15,97,71,.55)}

/* ---------- app section (ported from Bento, refined) ---------- */
.feat{display:flex;flex-direction:column}
.feat .feat-copy{max-width:44ch}
.feat .feat-copy p{color:var(--muted)}
.deep.feat .feat-copy p{color:#B9D8C5}
.feat .art{margin-top:auto;padding-top:24px}
.hora-art svg{max-width:340px;display:block;margin:0 auto}
.tile-rhythm{display:flex;flex-direction:column;gap:28px;min-height:560px}
.tile-rhythm .phone{--pw:330px}
.tile-rhythm .phone-rise{margin-top:auto}
.levels{display:flex;gap:6px;flex-wrap:wrap;margin:18px 0 0;padding:0;list-style:none}
.levels li{font-size:13px;font-weight:600;padding:6px 12px;border-radius:999px;background:#fff;color:var(--e700)}
.levels li:nth-child(1){background:var(--e900);color:#fff}
@keyframes breathe{50%{box-shadow:0 0 0 6px rgba(163,207,181,.25)}}
/* the home-screen widget: renders of the real widget (the app's Widget style previews, as RitamWidget.kt draws it) */
.widget-shots{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;width:100%}
.widget-shots img{width:min(46%,210px);height:auto;filter:drop-shadow(0 18px 26px rgba(5,52,38,.28))}
.widget-shots.four img{width:min(46%,180px)}
.widget-peek{display:grid;place-items:center;padding:18px 12px;min-height:260px;background:var(--e100)}
.widget-stage{display:grid;place-items:center;margin-top:auto;padding-top:28px}
.tile.photo{padding:0;display:flex;flex-direction:column;background:#fff}
.tile.photo .ph{position:relative;overflow:hidden;flex:1;min-height:220px}
.tile.photo .ph>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform 1.2s var(--ease)}
a.tile.photo:hover .ph>img{transform:scale(1.04)}
.tile.photo .body{padding:24px clamp(22px,2.4vw,32px) 28px}
.tile.photo .body p{color:var(--muted);margin-bottom:12px}
.phone-peek{display:flex;justify-content:center;align-items:flex-start;padding-top:6px;min-height:260px!important;background:var(--e100)}
.phone-peek .phone{--pw:230px;position:absolute;top:10px;left:50%;transform:translateX(-50%);transition:transform .8s var(--ease)}
a.tile:hover .phone-peek .phone{transform:translate(-50%,-8px)}
.tile-music{min-height:520px;color:#fff;padding:0;background:#6F7F78}
.tile-music .sky{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-1}
.tile-music .veil{position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,30,24,.5) 0%,rgba(10,30,24,.05) 45%,rgba(10,30,24,.05) 55%,rgba(10,30,24,.6) 100%);z-index:-1}
.tile-music .inner{padding:clamp(22px,2.8vw,40px);display:flex;flex-direction:column;height:100%;min-height:inherit}
.tile-music .kicker{color:#fff;opacity:.92}
.tile-music .now{margin-top:auto;display:flex;align-items:center;gap:14px;background:rgba(255,255,255,.92);color:var(--ink);border-radius:22px;padding:12px 12px 12px 14px;max-width:400px}
.tile-music .now img{width:56px;height:56px;border-radius:14px;object-fit:cover;flex:none}
.tile-music .now b{display:block;font-family:var(--serif);font-size:21px;font-weight:600;line-height:1.1}
.tile-music .now small{color:var(--muted);font-size:12.5px;display:block;line-height:1.3;margin-top:2px}
.tile-music .play{margin-left:auto;width:46px;height:46px;border-radius:50%;background:var(--e900);color:#fff;border:0;display:grid;place-items:center;flex:none;cursor:pointer}
.tile-music .play svg{width:18px;height:18px}
.tile-label{font-size:11px;color:#EAF2EC;margin:10px 0 0;opacity:.95}
.times{display:flex;gap:6px;margin:4px 0 18px;flex-wrap:wrap}
.times button{font:600 12.5px var(--sans);border:0;border-radius:999px;padding:7px 12px;background:rgba(255,255,255,.22);color:#fff;cursor:pointer}
.times button[aria-pressed=true]{background:#fff;color:var(--e900)}
.tile-star{display:flex;flex-direction:column;min-height:440px}
.tile-star .jade{width:72%;max-width:280px;margin:auto auto 0;transition:transform .9s var(--ease)}
.tile-star:hover .jade{transform:translateY(-8px) rotate(-2deg)}
.fan{position:relative;height:260px;margin-top:20px}
.fan img{position:absolute;width:62%;max-width:300px;aspect-ratio:4/3;object-fit:cover;border-radius:18px;box-shadow:0 24px 40px -22px rgba(5,52,38,.5);transition:transform .7s var(--ease);border:4px solid #fff}
.fan img:nth-child(1){left:2%;top:40px;transform:rotate(-7deg)}
.fan img:nth-child(2){left:20%;top:10px;transform:rotate(1deg);z-index:2}
.fan img:nth-child(3){left:38%;top:44px;transform:rotate(8deg);z-index:1}
.tile:hover .fan img:nth-child(1){transform:rotate(-10deg) translateX(-10px)}
.tile:hover .fan img:nth-child(3){transform:rotate(11deg) translateX(10px)}
.more-tile{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center;justify-content:space-between}
.more-tile h3{margin:0!important;font-size:28px}
.more-tile .chips{display:flex;flex-wrap:wrap;gap:8px}
.more-tile .chip{background:var(--e100)}
.ptile{min-height:340px;padding:0;background:#EEF1EA;display:block}
.ptile>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:right center;transition:transform 1.4s var(--ease);z-index:-2}
.ptile::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(248,246,239,.92) 0%,rgba(248,246,239,.6) 36%,rgba(248,246,239,0) 60%);pointer-events:none}
.ptile:hover>img{transform:scale(1.04)}
.ptile .lab{position:relative;padding:clamp(22px,2.6vw,36px);max-width:52%;display:flex;flex-direction:column;height:100%;min-height:inherit}
.ptile h3{font-size:clamp(32px,3.2vw,46px)}
.ptile p{color:var(--muted);font-size:15.5px;max-width:30ch}
.ptile.big{min-height:460px}
@media (max-width:680px){
  .tile-rhythm .phone{--pw:270px}
  a.tile.ptile{display:flex;flex-direction:column;min-height:0}
  .ptile>img{position:relative;inset:auto;height:auto;aspect-ratio:16/10;order:2;z-index:0}
  .ptile::before{display:none}
  .ptile .lab{max-width:none;min-height:0}
  .fan{height:200px}
}

/* atlases */
.atlas-tile{min-height:440px;display:flex;flex-direction:column;position:relative}
.atlas-tile h3{font-size:clamp(34px,3.4vw,48px)}
.atlas-tile h3 a{color:inherit;text-decoration:none}
.atlas-tile h3 a:hover{text-decoration:underline;text-decoration-thickness:1px}
.atlas-tile .cluster{position:relative;margin-top:auto;height:220px}
.atlas-tile .cluster img{position:absolute}
.planet-strip{display:flex;gap:clamp(4px,1.2vw,14px);justify-content:space-between;align-items:center;margin-top:auto;padding-top:28px}
.planet-strip a{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:8px;text-decoration:none;color:#EAF4EC!important;font-size:13.5px;font-weight:500}
.planet-strip img{width:100%;max-width:96px;aspect-ratio:1;object-fit:contain;transition:transform .5s var(--ease);filter:drop-shadow(0 10px 14px rgba(0,0,0,.25))}
.planet-strip a:hover img{transform:translateY(-6px) scale(1.05)}
.nak-band{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,2fr);gap:28px;align-items:center}
.nak-band h3{font-size:clamp(34px,3.4vw,48px)}
.nak-row{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;align-items:end;padding-top:24px}
.nak-row a{display:flex;flex-direction:column;align-items:center;gap:8px;text-decoration:none;color:var(--ink);font-size:14px;font-weight:500}
.nak-row a:nth-child(even){transform:translateY(-22px)}
.nak-row img{width:100%;max-width:130px;aspect-ratio:1;transition:transform .6s var(--ease)}
.nak-row a:hover img{transform:translateY(-6px)}
@media (max-width:820px){.nak-band{grid-template-columns:1fr}.nak-row{grid-template-columns:repeat(4,minmax(0,1fr))}.nak-row a:nth-child(even){transform:none}}
@media (max-width:680px){.planet-strip{flex-wrap:wrap;justify-content:center}.planet-strip a{flex:0 0 28%}}

/* journal, faq, download */
.post .ph{aspect-ratio:4/3;flex:none!important;min-height:0!important}
.post h3{font-size:clamp(24px,2.2vw,30px);margin:8px 0 10px}
.post .meta{font-size:13px;color:var(--muted);letter-spacing:.04em;display:flex;gap:10px}
.faq{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);gap:var(--gap)}
.faq details{border-top:1px solid var(--line);padding:4px 0}
.faq details:first-child{border-top:0}
.faq summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;gap:20px;align-items:center;padding:18px 0;font-family:var(--serif);font-size:clamp(21px,1.8vw,25px);font-weight:600;line-height:1.25}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"";flex:none;width:30px;height:30px;border-radius:50%;background:var(--e100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F6147' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/16px no-repeat;transition:transform .3s var(--ease)}
.faq details[open] summary::after{transform:rotate(45deg)}
.faq details p{color:var(--muted);margin:0 0 20px;max-width:64ch}
.faq-moon{width:180px;margin:28px 0 0 auto}
@media (max-width:820px){.faq{grid-template-columns:1fr}}
.download{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:24px;align-items:center;min-height:440px}
.download h2{font-size:clamp(40px,5vw,72px)}
.download .lede{color:#B9D8C5;margin:18px 0 0}
.download .mark{display:block;height:96px;width:auto;margin-bottom:26px}
.download .phones{display:flex;justify-content:center;gap:18px;margin-bottom:calc(-1 * clamp(22px,2.8vw,40px));align-self:end}
.download .phones .phone{--pw:230px;border-bottom-left-radius:0;border-bottom-right-radius:0;aspect-ratio:360/560;padding-bottom:0}
.download .phones .phone:nth-child(2){margin-top:60px}
.download .phones .phone .screen{border-bottom-left-radius:0;border-bottom-right-radius:0}
@media (max-width:820px){.download{grid-template-columns:1fr}.download .phones .phone{--pw:150px}.download .phones .phone:nth-child(2){margin-top:40px}}


.btn.play-btn{margin-top:4px}
.stretch::after{content:"";position:absolute;inset:0;z-index:0}
.atlas-tile .planet-strip,.atlas-tile .cluster{position:relative;z-index:1}

@media (prefers-reduced-motion:reduce){
  .scroll-cue i{animation:none}
}

/* reduced motion: steps as a two-column list, then three finished frames full width */
.story.static .story-grid{grid-template-columns:minmax(0,1fr);align-items:start}
.story.static .steps{grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:36px 48px}
.story.static .story-stage{margin-top:12px}
.story.static .frames figure .chart{margin:0 auto}
.story.static~.bridge,html.no-js .bridge{display:none}

/* ---------- phones: sections below the story ---------- */
.swipe-app{display:contents}
@media (max-width:680px){
  /* swipe rails (scroll-snap) instead of tall stacks */
  .swipe,#journal .bento,.nak-row{display:grid;grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:min(82%,330px);gap:12px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;margin:0 calc(-1 * var(--gutter));padding:2px var(--gutter) 10px;scroll-padding-inline:var(--gutter);scrollbar-width:none}
  .swipe::-webkit-scrollbar,#journal .bento::-webkit-scrollbar,.nak-row::-webkit-scrollbar{display:none}
  .swipe>*,#journal .bento>*,.nak-row>*{scroll-snap-align:start;min-width:0;grid-column:auto!important}
  .swipe-app{grid-column:1/-1}
  .swipe .tile{grid-column:auto;min-height:0}
  .swipe .tile.lift:hover,.swipe a.tile:hover{transform:none}
  /* tiles inside the app rail: same height, media at the bottom */
  .swipe .feat,.swipe .tile-music,.swipe .tile-star,.swipe .tile.photo,.swipe .ptile{display:flex;flex-direction:column}
  .swipe .feat .feat-copy p:not(.kicker){font-size:15px;line-height:1.5}
  .swipe .tile h3{font-size:24px}
  .swipe .phone-rise .phone{--pw:200px}
  .swipe .widget{grid-template-columns:1fr;padding:16px 18px;gap:10px}
  .swipe .widget-stage{padding-top:18px}
  .swipe .tile-music{min-height:440px}
  .swipe .tile-music .now{padding:10px}
  .swipe .tile-music .now img{width:48px;height:48px}
  .swipe .ptile>img{order:2;margin-top:auto}
  .swipe .ptile .lab p{max-width:none}
  .swipe .tile-star .jade{width:62%}
  .swipe .phone-peek{min-height:240px!important}
  .swipe .phone-peek .phone{--pw:190px}
  .swipe .fan{height:170px;margin-top:auto}
  .swipe .fan img{width:58%}
  .tile-rhythm{min-height:0;gap:20px}
  .tile-rhythm .phone{--pw:250px}
  .levels li{font-size:13.5px;padding:7px 13px}
  /* tap targets */
  .times button{min-height:44px;padding:0 14px;font-size:13.5px}
  .more-tile .chip{min-height:44px;padding:0 14px;font-size:14px}
  .tile .arrow,#journal .arrow{min-height:44px}
  .tile-music .play{width:48px;height:48px}
  /* journal cards in the rail */
  #journal .post .body{padding:18px 18px 8px}
  #journal .post h3{font-size:24px}
  #journal .post .body p{font-size:15px;line-height:1.5}
  /* atlases */
  .atlas-tile{min-height:0}
  .atlas-tile .cluster{height:190px;margin-top:20px}
  .planet-strip{gap:14px 0}
  .planet-strip a{font-size:14px}
  .nak-band{gap:8px}
  .nak-row{grid-auto-columns:30%;padding-top:16px}
  .nak-row a:nth-child(even){transform:none}
  .nak-row a{min-height:44px;font-size:14px}
  /* FAQ, download */
  .faq{gap:12px}
  .faq .tile.t2{padding-bottom:22px}
  .faq-moon{display:none}
  .faq summary{min-height:52px;padding:12px 0;font-size:21px}
  .faq details p{font-size:16px}
  .download{min-height:0}
  .download h2{font-size:clamp(36px,10vw,46px)}
  .download .phones .phone{--pw:136px}
  /* Rtam */
  .ritam .big{font-size:clamp(92px,28vw,130px)}
  .why{gap:16px}
}
