/* Mental Gym · version 3 layer (loaded after site.css).
   Dark "Ember" pages (body.brand-page): Home, Videos, What is Mental Gym, Coming soon.
   Paper pages (book, shop, policies) keep site.css and only get the new header, menu sheet and bottom bar.
   Rules: Telugu is never letter-spaced; body text >= 16px on phones; nothing is hidden until an animation runs. */
:root {
  --vline: rgba(243,236,226,.13);
  --vsoft: #CFC4B6;
  --vmeta: #BDB1A2;
  --vglass: rgba(30,23,19,.58);
  --vhi: inset 0 1px 0 rgba(255,255,255,.08);
  --ease: cubic-bezier(.2,.7,.2,1);
  --ignite: #FF5630; --spark: #FFC83D; --bone: #F3ECE2; --iron: #17120E; --iron-2: #211A15;
}
body.brand-page { color-scheme: dark; -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.v3 main { padding-top: 84px; }
.glass { background: var(--vglass); border: 1px solid var(--vline); box-shadow: var(--vhi), 0 20px 50px rgba(0,0,0,.35);
  -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass { background: rgba(30,23,19,.94); } }
.v3 svg { flex: none; }
:focus-visible { outline: 2px solid var(--spark); outline-offset: 3px; }

/* ---------- header (both themes) ---------- */
.hd { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding-top: max(10px, env(safe-area-inset-top)); transition: padding .3s var(--ease); }
.hd::before { content: ""; position: absolute; inset: 0 0 -24px; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: linear-gradient(var(--iron) 35%, rgba(23,18,14,0)); }
.hd.shrunk { padding-top: max(6px, env(safe-area-inset-top)); }
.hd.shrunk::before { opacity: 1; }
.hd-bar { display: flex; align-items: center; gap: 8px; height: 60px; padding: 0 8px 0 14px; border-radius: 999px; transition: height .3s var(--ease); }
.hd.shrunk .hd-bar { height: 52px; }
.hd .brand { font-size: 17px; color: var(--bone); }
.hd .brand img { width: 24px; height: 24px; }
.hd .brand .g { color: var(--ignite); }
.hd-tabs { display: none; gap: 2px; margin-left: 12px; }
.hd-tabs a { display: flex; align-items: center; height: 40px; padding: 4px 12px 0; border-radius: 999px; font-family: var(--te-ui); font-size: 15px; font-weight: 500; line-height: 1; text-decoration: none; color: var(--vsoft); white-space: nowrap; }
.en .hd-tabs a { font-family: var(--la); padding-top: 0; }
.hd-tabs a:hover { color: var(--bone); }
.hd-tabs a[aria-current] { color: var(--bone); background: rgba(243,236,226,.08); }
.hd-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.langp { display: inline-grid; grid-template-columns: 1fr 1fr; height: 44px; padding: 3px; border-radius: 999px; background: rgba(243,236,226,.06); border: 1px solid rgba(243,236,226,.14); }
.langp a, .langp span { display: flex; align-items: center; justify-content: center; height: 36px; padding: 0 11px; border-radius: 999px; font-size: 14px; font-weight: 600; line-height: 1; text-decoration: none; color: #B7AB9D; white-space: nowrap; }
.langp [lang="te"] { font-family: var(--te-ui); padding-top: 3px; }
.langp [lang="en"] { font-family: var(--la); }
.langp a:hover { color: var(--bone); }
.langp .on { color: var(--iron); background: var(--bone); box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.hd-cta { display: none; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--ignite); color: var(--iron);
  font-family: var(--te-ui); font-weight: 700; font-size: 15px; line-height: 1; text-decoration: none; white-space: nowrap; }
.hd-cta span { padding-top: 3px; }
.en .hd-cta, .hd-cta .lat { font-family: var(--la); }
.en .hd-cta span { padding-top: 0; }
.hd-cta svg { width: 18px; height: 18px; }
.menu-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(243,236,226,.14); background: rgba(243,236,226,.06); color: var(--bone); display: grid; place-items: center; cursor: pointer; padding: 0; }
.menu-btn svg, .sheet-x svg { width: 20px; height: 20px; }
.sheet { position: fixed; z-index: 60; top: 10px; left: 10px; right: 10px; border-radius: 26px; padding: 64px 12px 14px; }
.sheet[hidden] { display: none; }
.sheet nav { display: grid; }
.sheet nav a { display: flex; align-items: center; min-height: 56px; padding: 6px 14px 0; border-radius: 16px; font-family: var(--te-ui); font-size: 20px; font-weight: 600; text-decoration: none; color: var(--bone); }
.en .sheet nav a { font-family: var(--la); padding-top: 0; }
.sheet nav a[aria-current] { background: rgba(243,236,226,.08); color: var(--spark); }
.sheet-x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--vline); background: transparent; color: var(--bone); display: grid; place-items: center; cursor: pointer; padding: 0; }

/* paper pages: same header, warm-paper glass */
body.v3:not(.brand-page) .hd::before { background: linear-gradient(var(--paper) 35%, rgba(253,243,226,0)); }
body.v3:not(.brand-page) .glass { background: rgba(253,243,226,.84); border-color: var(--line); box-shadow: 0 12px 30px rgba(120,80,30,.12); }
body.v3:not(.brand-page) .hd .brand { color: var(--ink); }
body.v3:not(.brand-page) .hd-tabs a { color: var(--soft); }
body.v3:not(.brand-page) .hd-tabs a:hover { color: var(--ink); }
body.v3:not(.brand-page) .hd-tabs a[aria-current] { color: var(--maroon); background: rgba(122,46,42,.08); }
body.v3:not(.brand-page) .langp { background: rgba(122,46,42,.05); border-color: var(--line); }
body.v3:not(.brand-page) .langp a { color: var(--soft); }
body.v3:not(.brand-page) .langp a:hover { color: var(--ink); }
body.v3:not(.brand-page) .langp .on { background: var(--maroon); color: var(--paper); box-shadow: none; }
body.v3:not(.brand-page) .hd-cta { background: var(--maroon); color: var(--paper); }
body.v3:not(.brand-page) .menu-btn, body.v3:not(.brand-page) .sheet-x { color: var(--ink); border-color: var(--line); background: rgba(122,46,42,.05); }
body.v3:not(.brand-page) .sheet nav a { color: var(--ink); }
body.v3:not(.brand-page) .sheet nav a[aria-current] { background: rgba(122,46,42,.08); color: var(--maroon); }

/* ---------- buttons (dark pages) ---------- */
.vbtn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 4px 24px 0; border-radius: 999px; border: 0;
  font: 700 17px/1.3 var(--te-ui); text-decoration: none; text-align: center; cursor: pointer; }
.en .vbtn { font-family: var(--la); padding-top: 0; }
.vbtn svg { width: 20px; height: 20px; margin-top: -3px; }
.en .vbtn svg { margin-top: 0; }
.vbtn-hot { background: var(--ignite); color: var(--iron); box-shadow: 0 10px 30px rgba(255,86,48,.35), inset 0 1px 0 rgba(255,255,255,.25); }   /* Iron on Ignite: 5.85:1 */
.vbtn-hot:hover { background: #ff6a47; }
.vbtn-glass { background: rgba(243,236,226,.08); color: var(--bone); border: 1px solid rgba(243,236,226,.22); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.vbtn-glass:hover { background: rgba(243,236,226,.14); }
.kick { font: 800 12px var(--la); letter-spacing: 3px; text-transform: uppercase; color: var(--spark); }
.kick-te { font: 600 15px var(--te-ui); letter-spacing: 0; text-transform: none; }
.vsec { position: relative; padding: 36px 0; }
.vsec h2 { margin: 6px 0 4px; font: 400 clamp(30px, 7.5vw, 50px)/1.4 var(--te-display); color: var(--bone); }
.en .vsec h2 { font: 800 clamp(30px, 7vw, 46px)/1.15 var(--la); letter-spacing: -.8px; }
.vsub { margin: 0; color: var(--vsoft); max-width: 38em; font-size: 17px; line-height: 1.8; }
.en .vsub { line-height: 1.65; }
.sec-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sec-act { display: flex; align-items: center; gap: 8px; flex: none; }
.more { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--te-ui); font-weight: 700; color: var(--spark); text-decoration: none; }
.en .more { font-family: var(--la); }
.more-d { display: none; }

/* ---------- home hero: drifting wall of real thumbnails behind dark glass ---------- */
.vhero { position: relative; isolation: isolate; overflow: clip; margin-top: -84px; padding: 124px 0 36px; display: flex; align-items: center; }
.vhero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.wall { position: absolute; inset: -30% -20%; background: #1a140f url(/assets/wall.webp) center / 1400px auto repeat;
  transform: perspective(1400px) rotateX(24deg) rotateZ(-8deg); transform-origin: 50% 40%; animation: drift 90s linear infinite alternate; will-change: transform; }
@keyframes drift { to { transform: perspective(1400px) rotateX(24deg) rotateZ(-8deg) translate3d(-260px, -120px, 0); } }
.vhero-bg::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 30% 55%, rgba(23,18,14,.80) 0%, rgba(23,18,14,.86) 50%, rgba(23,18,14,.94) 100%),
              linear-gradient(180deg, rgba(23,18,14,.6) 0%, transparent 25%, transparent 70%, var(--iron) 100%); }
.orb { position: absolute; z-index: 1; border-radius: 50%; filter: blur(60px); pointer-events: none; animation: float 26s ease-in-out infinite alternate; }
.o1 { width: 60vmax; height: 60vmax; left: -25vmax; top: -20vmax; background: radial-gradient(circle, rgba(255,86,48,.32), transparent 65%); }
.o2 { width: 50vmax; height: 50vmax; right: -25vmax; bottom: -25vmax; background: radial-gradient(circle, rgba(255,200,61,.18), transparent 65%); animation-duration: 32s; }
@keyframes float { to { transform: translate3d(5vw, 4vh, 0) scale(1.08); } }
.vhero-in { display: grid; gap: 18px; position: relative; z-index: 2; }
.vhero h1 { margin: 10px 0 12px; font: 400 clamp(40px, 11vw, 84px)/1.3 var(--te-display); color: var(--bone); text-shadow: 0 2px 30px rgba(0,0,0,.5); }
.en .vhero h1 { font: 800 clamp(40px, 10.5vw, 80px)/1.06 var(--la); letter-spacing: -1.5px; }
.hlead { margin: 0 0 22px; max-width: 34em; color: #E2D8CB; font-size: 17px; line-height: 1.85; text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.en .hlead { line-height: 1.65; }
.ctas { display: grid; gap: 10px; }
.vhero-s { padding: 116px 0 18px; }   /* short hero for inner dark pages */
.vhero-s h1 { font-size: clamp(38px, 10vw, 68px); }
.vhero-s .hlead { margin-bottom: 0; }

/* ---------- video cards ---------- */
.vc { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--bone); min-width: 0; }
.vc-img { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--iron-2); box-shadow: 0 0 0 1px var(--vline), 0 14px 30px rgba(0,0,0,.35); }
.vc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.vc:hover .vc-img img { transform: scale(1.04); }
.vc-d { position: absolute; right: 6px; bottom: 6px; padding: 2px 7px; border-radius: 8px; background: rgba(10,7,5,.9); color: #fff; font: 700 12px/1.4 var(--la); letter-spacing: .3px; }
.vc-p { position: absolute; left: 8px; bottom: 8px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ignite); color: var(--iron); box-shadow: 0 6px 16px rgba(255,86,48,.45); opacity: 0; transform: scale(.8); transition: .25s var(--ease); }
.vc-p svg { width: 18px; height: 18px; }
.vc:hover .vc-p, .vc:focus-visible .vc-p, .feat .vc-p { opacity: 1; transform: none; }
.vc-g { font: 600 13px var(--te-ui); color: var(--spark); margin-bottom: -4px; }
.en .vc-g { font-family: var(--la); }
.vc-t { font-family: var(--te-ui); font-size: 16px; font-weight: 600; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vc-v { display: inline-flex; align-items: center; gap: 6px; margin-top: -4px; font: 600 13px var(--la); color: var(--vmeta); }
.vc-v svg { width: 14px; height: 14px; }
.vc-all .vc-img { display: grid; place-items: center; background: radial-gradient(120% 120% at 30% 20%, rgba(255,86,48,.22), rgba(243,236,226,.04) 60%); border: 1px dashed rgba(243,236,226,.28); box-shadow: none; }
.vc-all-t { font: 700 17px/1.4 var(--te-ui); color: var(--spark); padding: 0 10px; text-align: center; }
.en .vc-all-t { font-family: var(--la); }
.vc-all:hover .vc-img { border-color: var(--spark); }
.feat { flex-direction: row; align-items: center; padding: 8px; border-radius: 22px; gap: 12px; }
.feat .vc-img { flex: 0 0 132px; border-radius: 14px; }
.feat .vc-p { left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); width: 38px; height: 38px; }
.feat .vc-t { padding-right: 8px; }
.feat .vc-v { display: none; }
/* phones: grids, never sideways-swipe rows */
.vgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; }
.vgrid .vc-t { font-size: 15.5px; }
.vgrid-sh { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sh { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--bone); }
.sh-img { position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: var(--iron-2); box-shadow: 0 0 0 1px var(--vline); }
.sh-img img { width: 100%; height: 100%; object-fit: cover; }
.sh-t { font-family: var(--te-ui); font-size: 14px; line-height: 1.5; color: var(--vsoft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Everything at Mental Gym (bento) ---------- */
.grp { display: flex; align-items: center; gap: 8px; margin: 26px 0 12px; font: 600 15px var(--te-ui); color: var(--vsoft); }
.en .grp { font-family: var(--la); }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.live { background: #5BD38A; box-shadow: 0 0 0 4px rgba(91,211,138,.15); }
.dot.gold { background: var(--spark); box-shadow: 0 0 0 4px rgba(255,200,61,.15); }
.ev-grid { display: grid; gap: 12px; }
.vt { position: relative; display: flex; flex-direction: column; gap: 6px; border-radius: 24px; padding: 20px; overflow: hidden; text-decoration: none; color: var(--bone);
  background: linear-gradient(160deg, rgba(243,236,226,.07), rgba(243,236,226,.025)); border: 1px solid var(--vline); box-shadow: var(--vhi); transition: transform .3s var(--ease), border-color .3s; }
a.vt:hover { transform: translateY(-3px); border-color: rgba(243,236,226,.28); }
.t-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.t-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(243,236,226,.08); flex: none; }
.t-ic svg { width: 24px; height: 24px; }
.free { font: 700 12px var(--te-ui); padding: 3px 10px 1px; border-radius: 999px; color: #0e2a14; background: #8EE3AE; }
.en .free { font-family: var(--la); padding-top: 2px; }
.t-big { font: 400 26px/1.45 var(--te-display); margin-top: 4px; color: inherit; text-decoration: none; }
.en .t-big { font: 800 24px/1.25 var(--la); letter-spacing: -.3px; }
a.t-big:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.t-p { color: var(--vsoft); font-family: var(--te-ui); font-size: 16px; line-height: 1.75; }
.en .t-p { font-family: var(--la); line-height: 1.6; }
.t-meta { font: 600 14px var(--la); color: var(--vmeta); }
.t-go { margin-top: auto; padding-top: 6px; font: 700 15px var(--te-ui); color: var(--spark); text-decoration: none; }
.en .t-go { font-family: var(--la); }
.t-btn { margin-top: 10px; align-self: flex-start; min-height: 48px; font-size: 16px; }
.t-vid { min-height: 260px; justify-content: flex-end; isolation: isolate; }
.t-vid::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(/assets/wall.webp) 30% 20% / 900px auto; opacity: .9; }
.t-vid::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(23,18,14,.35), rgba(23,18,14,.92) 62%); }
.t-vid .t-row { position: absolute; top: 18px; left: 20px; right: 20px; }
.t-vid .t-ic { color: var(--iron); background: var(--ignite); }
.t-book { padding: 0; background: linear-gradient(160deg, #2a1e17, #1a140f); }
.t-art { position: relative; display: block; height: 178px; overflow: hidden; text-decoration: none; }
.t-art > img:first-child { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.t-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, #211812); }
.t-art .cov { position: absolute; z-index: 1; right: 18px; bottom: 14px; width: 92px; border-radius: 3px 8px 8px 3px; transform: rotate(4deg); box-shadow: 0 18px 40px rgba(0,0,0,.6); }
.t-book .t-body { display: flex; flex-direction: column; gap: 6px; padding: 4px 20px 20px; position: relative; z-index: 2; }
.badge { align-self: flex-start; font: 600 13px var(--te-ui); color: var(--iron); background: var(--spark); padding: 4px 10px 1px; border-radius: 999px; }
.en .badge { font-family: var(--la); padding-top: 3px; }
.t-price { display: flex; align-items: baseline; gap: 10px; }
.t-price b { font: 800 28px/1 var(--la); } .t-price s { font: 600 16px var(--la); color: var(--vmeta); }
.t-sm { flex-direction: row; align-items: flex-start; gap: 12px; padding: 14px 14px 12px; border-radius: 20px; }
.t-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.t-sm b { font-size: 17px; line-height: 1.5; font-family: var(--la); }
.t-soon-list { display: grid; gap: 12px; }
.t-soon { border-color: rgba(255,200,61,.22); background: linear-gradient(160deg, rgba(255,200,61,.09), rgba(243,236,226,.02) 60%); }
.t-soon h3 { margin: 0; font: 700 19px/1.5 var(--te-ui); color: var(--bone); }
.en .t-soon h3 { font-family: var(--la); }
.t-soon p { margin: 0 0 4px; color: var(--vsoft); font-family: var(--te-ui); font-size: 16px; line-height: 1.75; }
.en .t-soon p { font-family: var(--la); line-height: 1.6; }
.t-tag { font: 700 12.5px var(--te-ui); color: var(--spark); }
.en .t-tag { font-family: var(--la); letter-spacing: .5px; }
.soon-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 14px 0 0; color: var(--vsoft); font-family: var(--te-ui); }
.en .soon-foot { font-family: var(--la); }
.soon-foot b { color: var(--bone); }
.soon-foot a { font-weight: 700; color: var(--spark); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- goal picker ---------- */
.gchips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 16px; }
.gchip { display: flex; align-items: center; min-height: 44px; padding: 3px 16px 0; border-radius: 999px; border: 1px solid rgba(243,236,226,.18); background: rgba(243,236,226,.05);
  font: 600 15.5px/1.2 var(--te-ui); text-decoration: none; color: #E2D8CB; cursor: pointer; }
.en .gchip { font-family: var(--la); padding-top: 0; font-size: 15px; }
.gchip:hover { border-color: rgba(243,236,226,.4); }
.gchip[aria-selected="true"], .gchip[aria-pressed="true"] { background: var(--bone); color: var(--iron); border-color: var(--bone); }
.rail.swap > * { animation: cardin .45s var(--ease) both; }   /* only after a tap; cards start visible */
@keyframes cardin { from { opacity: .001; transform: translateY(14px); } }
.arrow { display: none; width: 48px; height: 48px; border-radius: 50%; color: var(--bone); font-size: 18px; cursor: pointer; }
.arrow:disabled { opacity: 0; pointer-events: none; }
.prog { display: none; height: 2px; background: rgba(243,236,226,.12); border-radius: 2px; overflow: hidden; margin-top: 4px; }
.prog i { display: block; height: 100%; width: var(--w, 30%); background: var(--ignite); border-radius: 2px; transform: translateX(var(--x, 0)); transition: transform .15s linear; }
.prog[hidden] { display: none !important; }

/* ---------- method tiles ---------- */
.method { display: grid; gap: 12px; margin-top: 18px; }
.mt { border-radius: 22px; padding: 20px; }
.mt-n { font: 800 13px var(--la); letter-spacing: 2px; color: var(--spark); }
.mt p { margin: 8px 0 0; font-family: var(--te-ui); font-size: 17px; line-height: 1.8; color: var(--vsoft); }
.en .mt p { font-family: var(--la); line-height: 1.6; }
.mt p b { color: var(--bone); font-size: 19px; }

/* ---------- waitlist + follow (dark) ---------- */
.vjoin { border-radius: 26px; padding: 22px; display: grid; gap: 18px; }
.vjoin h2 { margin-top: 2px; }
.trust { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 22px 0 40px; border-top: 1px solid var(--vline); color: var(--vsoft); font-family: var(--te-ui); font-size: 16px; }
.en .trust { font-family: var(--la); }
.trust img { width: 22px; height: 22px; }
.trust a { color: var(--spark); font-weight: 700; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Videos library ---------- */
.lib-tools { display: grid; gap: 12px; margin: 8px 0 6px; }
.lib-search { position: relative; }
.lib-search input { width: 100%; height: 52px; padding: 4px 18px 0 46px; border-radius: 999px; border: 1px solid rgba(243,236,226,.2); background: rgba(243,236,226,.06); color: var(--bone);
  font: 500 17px var(--te-ui); }
.en .lib-search input { font-family: var(--la); padding-top: 0; }
.lib-search input::placeholder { color: #A89C8E; }
.lib-search svg { position: absolute; left: 16px; top: 15px; width: 22px; height: 22px; color: #A89C8E; pointer-events: none; }
.lib-count { margin: 0; color: var(--vmeta); font: 600 14px var(--te-ui); }
.en .lib-count { font-family: var(--la); }
.lib-goal { padding: 18px 0 8px; scroll-margin-top: 90px; }
.lib-goal h2 { font: 400 clamp(24px, 6vw, 34px)/1.45 var(--te-display) !important; margin: 0 0 12px !important; letter-spacing: 0 !important; }
.en .lib-goal h2 { font: 800 clamp(22px, 5vw, 30px)/1.2 var(--la) !important; letter-spacing: -.4px !important; }
.lib-goal[hidden], .vc[hidden] { display: none !important; }
.lib-none { margin: 20px 0; padding: 18px; border-radius: 18px; border: 1px dashed var(--vline); color: var(--vsoft); font-family: var(--te-ui); }
.films { display: grid; gap: 16px; }
.ai-chip { display: inline-block; margin: 10px 0 0; padding: 6px 14px 3px; border-radius: 999px; border: 1px solid rgba(255,200,61,.35); color: var(--spark); font: 600 14px var(--te-ui); }
.en .ai-chip { font-family: var(--la); padding-top: 5px; }

/* ---------- about ---------- */
.ab-hero { display: grid; gap: 22px; align-items: center; }
.ab-art { border-radius: 22px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.ab-art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ab-cards { display: grid; gap: 12px; margin-top: 18px; }
.ab-cards .vt b { font-family: var(--te-ui); font-size: 19px; line-height: 1.5; }
.en .ab-cards .vt b { font-family: var(--la); }
.ab-who { display: grid; gap: 16px; border-radius: 26px; padding: 22px; }
.ab-who p { margin: 0; color: var(--vsoft); font-family: var(--te-ui); font-size: 17px; line-height: 1.85; }
.en .ab-who p { font-family: var(--la); line-height: 1.65; }
.ab-who .who-h { display: flex; align-items: center; gap: 10px; }
.ab-who .who-h img { width: 30px; height: 30px; }
.vp { color: var(--vsoft); font-family: var(--te-ui); font-size: 17px; line-height: 1.85; margin: 10px 0 0; max-width: 46em; }
.en .vp { font-family: var(--la); line-height: 1.65; }

/* ---------- phone bottom bar ---------- */
.dock { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 999px; transition: transform .35s var(--ease), opacity .35s; }
.dock.off { transform: translateY(140%); opacity: 0; pointer-events: none; }
.dock a { display: flex; align-items: center; justify-content: center; height: 48px; padding: 3px 18px 0; border-radius: 999px; font: 700 16px var(--te-ui); text-decoration: none; white-space: nowrap; }
.en .dock a { font-family: var(--la); padding-top: 0; }
.d-hot { flex: 1.4; background: var(--ignite); color: var(--iron); }
.d-glass { flex: 1; background: rgba(243,236,226,.1); border: 1px solid rgba(243,236,226,.2); color: var(--bone); }
.d-book { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding-left: 4px; font: 600 15px var(--te-ui); color: var(--ink); }
.d-book img { width: 30px; height: 45px; border-radius: 2px 5px 5px 2px; box-shadow: 0 4px 10px rgba(0,0,0,.3); flex: none; }
.d-book span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-top: 2px; }
body.v3:not(.brand-page) .d-hot { background: var(--maroon); color: var(--paper); flex: none; }
body.has-dock footer { padding-bottom: 110px; }

/* ---------- player ---------- */
.vplayer { width: min(960px, 100% - 24px); max-width: none; max-height: none; padding: 0; border: 1px solid var(--vline); border-radius: 22px; background: #0f0b09; color: var(--bone); overflow: hidden; }
.vplayer::backdrop { background: rgba(10,7,5,.78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pl-head { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; }
.pl-t { flex: 1; margin: 0; font: 500 15px/1.55 var(--te-ui); color: var(--vsoft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pl-x { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--vline); background: rgba(243,236,226,.06); color: var(--bone); display: grid; place-items: center; cursor: pointer; padding: 0; }
.pl-x svg { width: 20px; height: 20px; }
.pl-frame { aspect-ratio: 16 / 9; background: #000; }
.pl-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.pl-bar { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; }
.pl-bar .vbtn { min-height: 46px; font-size: 15px; padding-inline: 18px; }

/* ---------- paper pages: no sideways-swipe rows on phones ---------- */
.v3 .strip { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; overflow: visible; margin: 0; padding: 6px 0 18px; scroll-snap-type: none; }
.v3 .strip img { width: 100%; }

@media (min-width: 700px) {
  .ctas { display: flex; flex-wrap: wrap; }
  .ev-grid { grid-template-columns: repeat(6, 1fr); }
  .t-vid, .t-book { grid-column: span 3; }
  .t-sm { grid-column: span 2; }
  .t-soon-list { grid-template-columns: repeat(2, 1fr); }
  .vgrid { grid-template-columns: repeat(3, 1fr); gap: 22px 16px; }
  .vgrid-sh { grid-template-columns: repeat(6, 1fr); }
  .method { grid-template-columns: repeat(3, 1fr); }
  .ab-cards { grid-template-columns: repeat(3, 1fr); }
  .lib-tools { grid-template-columns: 1fr; }
  .films { grid-template-columns: 1.6fr 1fr; align-items: start; }
  .v3 .strip { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .hd-tabs, .hd-cta { display: flex; }
  .menu-btn, .dock { display: none !important; }
  body.has-dock footer { padding-bottom: 28px; }
  .more-d { display: inline-flex; }
  .more-m { display: none; }
  .arrow { display: grid; place-items: center; }
  .prog { display: block; }
  .vhero { min-height: min(100svh, 880px); padding: 108px 0 40px; }
  .vhero-s { min-height: 0; padding: 120px 0 24px; }
  .vhero-bg::after { background:
      linear-gradient(90deg, rgba(23,18,14,.96) 0%, rgba(23,18,14,.9) 38%, rgba(23,18,14,.62) 62%, rgba(23,18,14,.72) 100%),
      linear-gradient(180deg, rgba(23,18,14,.6) 0%, transparent 25%); }
  .vhero-in { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; }
  .hlead, .vsub, .vp { font-size: 18px; }
  .feat { flex-direction: column; align-items: stretch; padding: 10px; border-radius: 26px; }
  .feat .vc-img { flex: none; border-radius: 18px; }
  .feat .vc-p { width: 72px; height: 72px; }
  .feat .vc-p svg { width: 30px; height: 30px; }
  .feat .vc-t { font-size: 17px; padding: 2px 8px 8px; }
  .feat .vc-v { display: inline-flex; margin: -4px 8px 6px; }
  .t-soon-list { grid-template-columns: repeat(4, 1fr); }
  .t-vid { min-height: 340px; }
  .t-art { height: 200px; }
  .t-art .cov { width: 116px; bottom: 16px; right: 28px; }
  /* goal row on desktop: one row that fills its width (up to 5 per view), arrows for more */
  .rail { display: grid; grid-auto-flow: column; --per: min(var(--n, 5), 5); grid-auto-columns: calc((100% - (var(--per) - 1) * 14px) / var(--per));
    grid-template-columns: none; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 0 14px; }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { scroll-snap-align: start; }
  .vgrid { grid-template-columns: repeat(4, 1fr); }
  .vjoin { grid-template-columns: .9fr 1.1fr; align-items: start; padding: 32px; }
  .ab-hero { grid-template-columns: 1.1fr .9fr; }
  .ab-who { grid-template-columns: 1fr 1fr; padding: 32px; }
  .lib-tools { grid-template-columns: 1fr 340px; align-items: center; }
  .lib-tools .gchips { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wall, .orb, .rail.swap > * { animation: none !important; }
  .v3 *, .v3 *::before, .v3 *::after { transition: none !important; }
}

/* ---------- paper pages: AA contrast for small text (the light gold/grey stay for lines and decoration) ---------- */
body.v3:not(.brand-page) { --mute: #6B5E52; --gold-t: #8A5F17; }   /* 5.2:1 and 4.7:1 on the darkest paper */
body.v3:not(.brand-page) .kicker, body.v3:not(.brand-page) .rule-num, body.v3:not(.brand-page) .eve .rng,
body.v3:not(.brand-page) .title-te, body.v3:not(.brand-page) .tile .ic { color: var(--gold-t); }
.book3d picture { display: block; }
@media (max-width: 699px) {
  .wall { background-image: url(/assets/wall-sm.webp); background-size: 700px auto; }
  .t-vid::before { background-image: url(/assets/wall-sm.webp); background-size: 450px auto; }
}
