/* Mandali public site · "quiet" edition (v203).
   An essay, not a catalogue: fewer sections, more space, one idea per screen, numbers that cite their source.
   Brand stays: navy/cream + gold, Fraunces with the gold italic accent word, IBM Plex Sans, the sloka, the 3D journey. */

/* ---------- rhythm: more air between chapters, calmer surfaces ---------- */
#info section.s { padding-block: clamp(84px, 11vw, 148px); }
#info section.s .wrap { max-width: 1120px; }
#info .aur, #info .grid-bg { display: none !important; }            /* decorative glows behind sections */
#info section.s .num { letter-spacing: .18em; }
#info p { text-wrap: pretty; }

/* ---------- shared editorial pieces ---------- */
.qt-k { margin: 0 0 14px; font: 600 .76rem/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.qt-lede { margin: 0; max-width: 58ch; font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.7; color: var(--soft); }

/* ---------- Chapter I: the honest number ---------- */
.qt-head { max-width: 760px; }
.qt-head h2 { margin: 0 0 22px; }
.qt-figs { display: grid; grid-template-columns: repeat(3, 1fr); margin: clamp(48px, 7vw, 84px) 0 0; border-top: 1px solid var(--line); }
.qt-figs figure { margin: 0; padding: 30px clamp(18px, 2.4vw, 34px) 8px 0; }
.qt-figs figure + figure { padding-left: clamp(18px, 2.4vw, 34px); border-left: 1px solid var(--line); }
.qt-n { display: block; font: 600 clamp(3.2rem, 7vw, 5.6rem)/.95 var(--serif); letter-spacing: -.02em; color: var(--text); font-variant-numeric: lining-nums; }
.qt-n small { font-size: .42em; font-weight: 500; color: var(--gold); letter-spacing: 0; margin-left: .04em; }
.qt-figs figcaption { margin-top: 18px; max-width: 30ch; font-size: 1rem; line-height: 1.65; color: var(--soft); }
.qt-figs figcaption strong { color: var(--text); font-weight: 600; }
.qt-src { margin: 26px 0 0; font-size: .82rem; color: var(--muted); }
.qt-src a { color: inherit; text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .qt-src a:hover { color: var(--gold); text-decoration-color: currentColor; } }

.qt-turn { margin-top: clamp(80px, 10vw, 132px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.qt-turn > .qt-k { grid-column: 1 / -1; margin-bottom: -8px; }
.qt-turn h3 { margin: 0; font: 600 clamp(1.9rem, 3.4vw, 2.8rem)/1.1 var(--serif); letter-spacing: -.01em; position: sticky; top: 110px; }
.qt-turn h3 em, .qt-libh h2 em { font-style: italic; font-weight: 500; color: var(--gold); }
.qt-pr { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.qt-pr li { display: grid; grid-template-columns: 54px 1fr; gap: 6px 18px; padding: 26px 0; border-top: 1px solid var(--line); }
.qt-pr li:last-child { border-bottom: 1px solid var(--line); }
.qt-pr li > span { font: italic 500 1.35rem/1.2 var(--serif); color: var(--gold); padding-top: 2px; }
.qt-pr b { display: block; font: 600 1.18rem/1.35 var(--sans); color: var(--text); margin-bottom: 6px; }
.qt-pr p { margin: 0; font-size: 1rem; line-height: 1.7; color: var(--soft); max-width: 56ch; }

/* ---------- The library: a quiet index, not a grid of cards ---------- */
.qt-libw { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.qt-libh h2 { margin: 0 0 18px; }
.qt-idx { list-style: none; margin: 0; padding: 0; }
.qt-idx li { border-top: 1px solid var(--line); } .qt-idx li:last-child { border-bottom: 1px solid var(--line); }
.qt-idx a { display: grid; grid-template-columns: 44px 1fr auto; grid-template-areas: "i t a" "i d a"; gap: 4px 16px; padding: 22px 4px; color: inherit; text-decoration: none; touch-action: manipulation; }
.qt-i { grid-area: i; font: 500 .8rem/1.6 var(--mono); color: var(--muted); padding-top: 3px; }
.qt-idx b { grid-area: t; font: 600 1.25rem/1.3 var(--serif); }
.qt-idx em { grid-area: d; font-style: normal; color: var(--soft); font-size: .98rem; line-height: 1.6; }
.qt-idx i { grid-area: a; align-self: center; font-style: normal; color: var(--gold); transition: transform .2s cubic-bezier(.23,1,.32,1); }
@media (hover: hover) and (pointer: fine) {
  .qt-idx a:hover b { color: var(--gold); }
  .qt-idx a:hover i { transform: translateX(4px); }
}

/* ---------- the rest of the page: one rhythm ---------- */
#info #pricing { background: transparent !important; border-top: 1px solid var(--line); }   /* classes and pricing no longer share a band */
#finale h2 { max-width: 18ch; margin-inline: auto; }
#journey .jr-end { font: italic 500 clamp(1.5rem, 2.6vw, 2rem)/1.2 var(--serif); color: var(--gold); }

/* ---------- phones ---------- */
@media (max-width: 760px) {
  .qt-figs { grid-template-columns: 1fr; }
  .qt-figs figure, .qt-figs figure + figure { padding: 26px 0 22px; border-left: 0; border-bottom: 1px solid var(--line); }
  .qt-figs figure:last-child { border-bottom: 0; }
  .qt-figs figcaption { max-width: none; }
  .qt-turn, .qt-libw { grid-template-columns: 1fr; }
  .qt-turn h3 { position: static; }
  .qt-pr li { grid-template-columns: 36px 1fr; }
  .qt-idx a { grid-template-columns: 34px 1fr auto; padding: 18px 2px; }
}
@media (prefers-reduced-motion: reduce) { .qt-idx i { transition: none; } }

/* =====================================================================
   Prologue (v204): "Nearly 9 in 10 F&O traders lose money. Why?"
   Pinned stage, six beats over the scroll, a field of 100 traders.
   ===================================================================== */
.pro { position: relative; z-index: 5; background: radial-gradient(120% 90% at 85% 10%, #111a35 0%, #070B16 55%), #070B16; color: #EEE9DC; }
.pro-track { height: 640svh; }
.pro-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; grid-template-rows: 1fr auto;
  padding: calc(76px + env(safe-area-inset-top, 0px)) max(22px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(22px, env(safe-area-inset-left, 0px)); }
.pro-grid { width: min(1160px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(28px, 6vw, 96px); align-items: center; min-height: 0; }
.pro-text { position: relative; min-height: 340px; }
.pro-beat { position: absolute; inset: 50% 0 auto 0; transform: translate3d(0, calc(-50% + 18px), 0); opacity: 0; pointer-events: none;
  transition: opacity .55s cubic-bezier(.23,1,.32,1), transform .7s cubic-bezier(.23,1,.32,1); }
.pro-beat.on { opacity: 1; transform: translate3d(0, -50%, 0); pointer-events: auto; }
.pro-k { margin: 0 0 18px; font: 500 .74rem/1.4 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .2em; text-transform: uppercase; color: #E9B44C; }
.pro h1 { margin: 0; font: 600 clamp(2.1rem, 3.5vw, 3.35rem)/1.08 Fraunces, Georgia, serif; letter-spacing: -.015em; text-wrap: balance; }
.pro-why { margin: .12em 0 0; font: italic 500 clamp(3.4rem, 8vw, 6.6rem)/1 Fraunces, Georgia, serif; color: #E9B44C; letter-spacing: -.02em; }
.pro-why em { font-style: inherit; }
.pro h2 { margin: 0 0 18px; font: 600 clamp(2rem, 4vw, 3.3rem)/1.06 Fraunces, Georgia, serif; letter-spacing: -.01em; }
.pro h2 em { font-style: italic; font-weight: 500; color: #E9B44C; }
.pro-n { margin: 0 0 14px; font: 500 .8rem/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .2em; color: #8E98B0; }
.pro-p { margin: 18px 0 0; max-width: 46ch; font: 400 clamp(1.02rem, 1.4vw, 1.14rem)/1.7 "IBM Plex Sans", system-ui, sans-serif; color: #C9CEDA; }
.pro-p b { color: #EEE9DC; font-weight: 600; }
.pro-big { margin: 4px 0 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pro-big b { font: 600 clamp(3.4rem, 7vw, 5.4rem)/1 Fraunces, Georgia, serif; font-variant-numeric: tabular-nums lining-nums; color: #F2665E; }
.pro-big small { font: 500 1.6rem/1 Fraunces, Georgia, serif; color: #F2665E; margin-left: -6px; }
.pro-big span { font: 500 .85rem/1.3 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: #8E98B0; }
.pro-split { display: flex; gap: 6px; margin-top: 26px; max-width: 460px; }
.pro-split i { flex: 0 0 var(--w); display: block; height: 44px; border-radius: 6px; background: rgba(233,180,76,.16); border: 1px solid rgba(233,180,76,.45); position: relative; }
.pro-split i + i { flex: 1; background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }
.pro-split span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font: 500 .74rem/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .06em; color: #EEE9DC; white-space: nowrap; }
.pro-bridge { margin: 22px 0 0; padding-left: 16px; border-left: 1px solid rgba(233,180,76,.55); font: 500 clamp(1.08rem, 1.5vw, 1.24rem)/1.5 Fraunces, Georgia, serif; color: #EEE9DC; }
.pro-bridge em { font-style: italic; color: #E9B44C; }
.pro-go { display: inline-flex; gap: 8px; align-items: center; margin-top: 28px; padding: 13px 24px; border-radius: 999px; background: #E9B44C; color: #070B16; font: 600 1rem/1 "IBM Plex Sans", system-ui, sans-serif; text-decoration: none; touch-action: manipulation; transition: transform .14s cubic-bezier(.23,1,.32,1); }
.pro-go:active { transform: scale(.97); }

/* the 3D scene: fills the stage, the words sit over a soft scrim */
.pro-viz { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.pro-viz canvas { width: 100%; height: 100%; display: block; }
.pro-stage::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, #070B16 0%, rgba(7,11,22,.82) 30%, rgba(7,11,22,0) 56%); }
.pro-grid, .pro-foot { position: relative; z-index: 2; }

/* footer: source, progress, skip */
.pro-foot { width: min(1160px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "src skip" "bar bar"; gap: 10px 18px; align-items: center; }
.pro-src { grid-area: src; margin: 0; font-size: .74rem; line-height: 1.5; color: #8E98B0; }
.pro-src a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,.2); text-underline-offset: 3px; }
.pro-bar { grid-area: bar; height: 2px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; }
.pro-bar i { display: block; height: 100%; background: #E9B44C; transform-origin: left; transform: scaleX(var(--pp, 0)); }
.pro-skip { grid-area: skip; font: 500 .78rem/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; color: #C9CEDA; text-decoration: none; padding: 10px 4px; touch-action: manipulation; }
@media (hover: hover) and (pointer: fine) { .pro-skip:hover, .pro-src a:hover { color: #E9B44C; } }

/* phones: dots above, words below */
@media (max-width: 820px) {
  .pro-track { height: 600svh; }
  .pro-grid { grid-template-columns: 1fr; grid-template-rows: 1fr; padding-top: max(0px, calc(44svh - 76px)); }
  .pro[data-beat="5"] .pro-foot { display: none; }
  .pro-beat[data-b="5"] { inset: auto 0 0 0; }
  .pro-stage::before { background: linear-gradient(180deg, rgba(7,11,22,0) 0%, rgba(7,11,22,0) 36%, rgba(7,11,22,.86) 50%, #070B16 66%); }
  .pro-text { min-height: 0; height: 100%; }
  .pro-beat { inset: 0 0 auto 0; transform: translate3d(0, 14px, 0); }
  .pro-beat.on { transform: none; }
  .pro h1 { font-size: clamp(1.75rem, 7.4vw, 2.4rem); }
  .pro-why { font-size: clamp(2.8rem, 13vw, 4rem); }
  .pro h2 { font-size: clamp(1.7rem, 7.6vw, 2.3rem); margin-bottom: 10px; }
  .pro-p { margin-top: 12px; font-size: 1rem; line-height: 1.6; }
  .pro-k { margin-bottom: 12px; font-size: .66rem; }
  .pro-big b { font-size: clamp(2.8rem, 12vw, 3.6rem); }
  .pro-split { margin-top: 16px; } .pro-split i { height: 38px; }
  .pro-src { font-size: .68rem; }
  .pro-bridge { margin-top: 14px; font-size: 1.04rem; }
  .pro-go { margin-top: 18px; }
  .pro-stage { padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }   /* clear the Login / Join bar */
}

@media (max-width: 820px) and (max-height: 700px) {
  .pro h2 { font-size: 1.55rem; }
  .pro-p { font-size: .95rem; line-height: 1.5; margin-top: 8px; }
  .pro-bridge { font-size: .98rem; margin-top: 10px; }
  .pro-go { margin-top: 12px; padding: 11px 20px; }
}

/* reduced motion: no pinning, the beats read as a short essay */
.pro.pro-static .pro-track { height: auto; }
.pro.pro-static .pro-stage { position: relative; height: auto; overflow: visible; }
.pro.pro-static .pro-text { min-height: 0; }
.pro.pro-static .pro-beat { position: static; opacity: 1; transform: none; margin-bottom: 56px; }
.pro.pro-static .pro-bar, .pro.pro-static .pro-skip { display: none; }
.pro.pro-static .pro-viz { position: relative; height: 62svh; margin-bottom: 24px; }
.pro.pro-static .pro-stage::before { display: none; }
.pro.pro-static .pro-grid { padding-top: 0; grid-template-columns: 1fr; }
