/* The header from v3.html (frame, logo box, the Mudra name that docks, Log in, the number box),
   merged into the one-view page; plus the section menu (option 2, Split, chosen by Ishat). */

/* Clash Display, Indian Type Foundry (Fontshare). Self-hosted as shipped: the original files, not subset or converted (see fonts/clash-display/LICENSE-FFL.txt). */
@font-face { font-family: 'Clash Display'; src: url(../fonts/clash-display/ClashDisplay-Variable.woff2) format('woff2'), url(../fonts/clash-display/ClashDisplay-Variable.woff) format('woff');
  font-weight: 200 700; font-style: normal; font-display: swap; }
:root { --clash: 'Clash Display', 'Manrope', ui-sans-serif, system-ui, sans-serif; }

/* ── the frame (v3.css), toned by the surface under it: night over the sky and the access close, day over the day sections ── */
:root { --f: 64px; --gap: 23px; }   /* --f is the one margin: left rail, right rail and the top line all sit exactly --f from their edge of the screen */
[data-surface="night"] { --fr-ink: #eef2f6; --fr-rule: rgba(232,238,246,.24); --fr-hi: #f1f4f8; --fr-hi-ink: #0b1017; --fr-pill: rgba(232,238,246,.1); --fr-band: rgba(5,9,19,.3); }
[data-surface="day"] { --fr-ink: #0e1621; --fr-rule: rgba(14,22,33,.16); --fr-hi: #1c2b40; --fr-hi-ink: #f6f8fa; --fr-pill: rgba(14,22,33,.05); --fr-band: rgba(241,243,245,.5); }
[data-theme="dark"][data-surface="day"] { --fr-ink: #e8edf2; --fr-rule: rgba(220,228,236,.18); --fr-hi: #e3e9ef; --fr-hi-ink: #0b1422; --fr-pill: rgba(220,228,236,.08); --fr-band: rgba(10,15,23,.45); }
.frame { position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--f); color: var(--fr-ink); transition: color .35s ease-out; }
.frame::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: var(--fr-band);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); transition: opacity .35s ease-out, background-color .35s ease-out; }
.frame.docked::before { opacity: 1; }   /* once docked, a light glass band so the page can pass under the name */
.frame::after { content: ''; position: absolute; left: 0; right: 0; top: var(--f); height: 1px; background: var(--fr-rule); pointer-events: none; }
.rail { position: fixed; top: 0; bottom: 0; z-index: 59; width: 1px; background: var(--fr-rule); pointer-events: none; transition: background-color .35s ease-out; }
.rail-l { left: var(--f); } .rail-r { right: var(--f); }
.f-logo { position: absolute; left: 0; top: 0; width: var(--f); height: var(--f); display: grid; place-items: center; }
.f-logo { color: var(--n-accent); transition: color .35s ease-out; }
.f-mark { width: 46%; height: auto; display: block; overflow: visible; filter: drop-shadow(0 0 3px color-mix(in srgb, var(--glow) 45%, transparent)); transition: filter .35s ease-out; }
.f-mark .lg-dot { opacity: .6; transition: opacity .35s ease-out; }
/* over a light surface: Premium Midnight ink, no shine */
[data-surface="day"]:not([data-theme="dark"]) .f-logo { color: var(--ink); }
[data-surface="day"]:not([data-theme="dark"]) .f-mark { filter: none; }
[data-surface="day"]:not([data-theme="dark"]) .f-mark .lg-dot { opacity: .55; }
.f-name { position: absolute; left: var(--f); right: var(--f); top: 0; height: var(--f); display: flex; align-items: center; justify-content: center; cursor: default; }
.f-word { font-family: var(--clash); font-weight: 500; font-size: 30px; line-height: 1; letter-spacing: .3em; margin-right: -.3em; text-transform: uppercase; white-space: pre; }
.js .f-word { visibility: hidden; }
.js .docked .f-word { visibility: visible; }
.f-login { position: absolute; right: calc(var(--f) + var(--gap)); top: 50%; transform: translateY(-50%); z-index: 2; height: 36px; padding: 0 18px; display: inline-flex; align-items: center;
  font-size: 14px; font-weight: 700; text-decoration: none; border-radius: 999px; border: 1px solid var(--fr-rule); color: inherit;
  background: var(--fr-pill); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  transition: background-color .2s ease-out, color .2s ease-out, border-color .2s ease-out, box-shadow .2s ease-out; }
.f-login:hover, .f-login:focus-visible { background: var(--fr-hi); color: var(--fr-hi-ink); border-color: var(--fr-hi); box-shadow: 0 0 26px -4px rgba(220,230,242,.6); }
.f-count { position: absolute; right: 0; top: 0; width: var(--f); height: var(--f); display: grid; place-items: center; font-size: 15px; font-weight: 500; }
.f-count i { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--fr-ink); transform-origin: 0 50%; transform: scaleX(var(--prog, 0)); }
.frame :focus-visible { outline: 2px solid var(--fr-ink); outline-offset: 3px; }

/* ── the hero: the name, full screen (v3.css). Always a night surface, in both themes ── */
.intro { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: var(--f); color: #eef2f6;
  background: radial-gradient(75% 32% at 50% 46%, rgba(125,143,165,.2), rgba(125,143,165,0) 100%), linear-gradient(180deg, #03060c 0%, #070d18 55%, var(--intro-end, #0b1422) 92%); }   /* ends on the stage sky's own top colour, so there is no seam */
[data-theme="dark"] .intro { --intro-end: #03060c; }
.intro-word { margin: 0; font-family: var(--clash); font-weight: 500; font-size: clamp(64px, 15.5vw, 300px); line-height: .8; letter-spacing: .3em; margin-right: -.3em; text-transform: uppercase; white-space: nowrap;
  will-change: transform; transform-origin: 50% 50%;
  background: linear-gradient(180deg, #ffffff 0%, #dfe6ee 38%, #8fa0b6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro-cap { margin: clamp(32px, 5.5vh, 64px) 0 0; font-family: var(--sans); font-weight: 500; font-size: 17px; line-height: 1.6; letter-spacing: .005em; color: rgba(238,242,246,.86); text-align: center; }
.intro-cap span { display: block; white-space: nowrap; }   /* always exactly two lines */
.js .intro { height: calc(var(--vh) * 1.9); height: round(down, calc(var(--vh) * 1.9), 1px); min-height: 0;   /* whole pixels, so the page below never sits on a half pixel */
   display: block; padding: 0; }
.js .intro-pin { position: sticky; top: 0; height: var(--vh); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.is-docked .intro-word { visibility: hidden; }
/* the stage starts under the hero's empty last quarter-screen (same sky colour there), so the next screen follows the dock after a short breather, not a gap */
.js .intro { height: calc(var(--vh) * 2.25); height: round(down, calc(var(--vh) * 2.25), 1px); }
.js .intro + .stage { margin-top: calc(var(--vh) * -1.35); }   /* the stage starts as the name docks (0.9 screen) and fades in over the hero, which holds still meanwhile */

@media (max-width: 1100px) {   /* iPad portrait: the page's own content starts 41px in, so the margin comes in to 40px, still equal on all three sides */
  :root { --f: 40px; --gap: 14px; }
  .f-word { font-size: 24px; }
  .f-login { height: 30px; padding: 0 14px; font-size: 13px; }
  .f-count { font-size: 13px; }
  .intro-cap { font-size: 15.5px; }

}
@media (max-width: 860px) {   /* phones come later; v3's values */
  :root { --f: 44px; --gap: 14px; }
  .f-word { font-size: 21px; }
  .f-login { height: 32px; padding: 0 12px; font-size: 13px; }
}

/* ── the section menu: option 2, Split. Day panel over day surfaces, night panel over the sky, the access close, or in dark mode ── */
.menu { --m-panel: rgba(247,249,251,.84); --m-band: rgba(247,249,251,.5); --m-ink: #0e1621; --m-muted: #56616e; --m-tint: rgba(44,62,85,.09); --m-tint2: rgba(44,62,85,.16);
  --m-line: rgba(14,22,33,.22); --m-glass-line: rgba(255,255,255,.7); --m-hi: rgba(255,255,255,.9); --m-btn: #1c2b40; --m-btn-ink: #f6f8fa; --m-shadow: rgba(8,14,24,.55);
  position: fixed; z-index: 65; top: calc(var(--f) + 12px); left: max(calc(var(--f) + 16px), calc(50vw - 560px)); right: max(calc(var(--f) + 16px), calc(50vw - 560px));
  height: min(560px, calc(100vh - var(--f) - 40px)); border-radius: 26px; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); color: var(--m-ink);
  background: var(--m-panel); -webkit-backdrop-filter: blur(30px) saturate(1.4); backdrop-filter: blur(30px) saturate(1.4); border: 1px solid var(--m-glass-line);
  box-shadow: inset 0 1px 0 var(--m-hi), 0 50px 90px -40px var(--m-shadow);
  clip-path: inset(0 0 100% 0 round 26px); visibility: hidden; transition: clip-path .55s var(--ease), visibility 0s .55s; }
[data-surface="night"] .menu, [data-theme="dark"] .menu, [data-surface="night"] .m-veil, [data-theme="dark"] .m-veil, [data-surface="night"] .frame, [data-theme="dark"] .frame {
  --m-panel: rgba(10,16,26,.8); --m-band: rgba(10,16,26,.42); --m-ink: #eef2f6; --m-muted: #a3afbd; --m-tint: rgba(200,211,222,.1); --m-tint2: rgba(200,211,222,.18);
  --m-line: rgba(220,228,236,.22); --m-glass-line: rgba(220,228,236,.14); --m-hi: rgba(220,228,236,.1); --m-btn: #e3e9ef; --m-btn-ink: #0b1422; --m-shadow: rgba(0,0,0,.7); }
.frame { --m-band: rgba(247,249,251,.5); }
[data-surface="night"] .frame, [data-theme="dark"] .frame { --m-band: rgba(10,16,26,.42); }
.menu.open { clip-path: inset(0 0 0 0 round 26px); visibility: visible; transition: clip-path .6s var(--ease), visibility 0s; }
.menu::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 14px; }   /* a bridge over the gap under the name */
.m-list { padding: 18px 14px 18px 18px; display: flex; flex-direction: column; gap: 2px; overflow: auto; }
.m-h { font: 600 11.5px var(--mono); letter-spacing: .08em; color: var(--m-muted); padding: 4px 14px 10px; text-transform: uppercase; }
.m-list a { display: grid; grid-template-columns: 34px minmax(0, 1fr) 16px; align-items: center; gap: 4px 10px; padding: 9px 14px; border-radius: 14px; text-decoration: none; color: inherit;
  opacity: 0; transform: translateY(8px); transition: opacity .4s ease-out, transform .5s var(--ease), background-color .2s ease-out; }
.menu.open .m-list a { opacity: 1; transform: none; transition-delay: calc(var(--i) * 35ms + 140ms), calc(var(--i) * 35ms + 140ms), 0s; }
.m-n { font: 600 12px var(--mono); color: var(--m-muted); }
.m-t { font-weight: 700; font-size: 15.5px; line-height: 1.25; }
.m-d { grid-column: 2; font-size: 13px; color: var(--m-muted); line-height: 1.3; }
.m-list a .ic { width: 15px; height: 15px; opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .3s var(--ease); }
.m-list a.hot { background: var(--m-tint); }
.m-list a.hot .ic { opacity: .8; transform: none; }
.m-list a.cur .m-n { color: var(--m-ink); }
.m-list a.cur .m-n::before { content: '\25CF\00A0'; font-size: 8px; vertical-align: 2px; }
.m-list a.m-acc { align-self: flex-start; margin-top: 8px; grid-template-columns: auto auto; padding: 12px 18px; border-radius: 999px; background: var(--m-btn); color: var(--m-btn-ink); }
.m-list a.m-acc .m-n, .m-list a.m-acc .m-d { display: none; }
.m-list a.m-acc .ic { opacity: 1; transform: none; }
.m-list a.m-acc.hot { background: var(--m-btn); box-shadow: 0 0 0 5px var(--m-tint2), 0 16px 30px -16px rgba(8,14,24,.7); }
.m-list a:focus-visible { outline: 2px solid var(--m-ink); outline-offset: 2px; }
.m-stage { position: relative; margin: 10px; border-radius: 20px; overflow: hidden; background: radial-gradient(120% 90% at 70% 40%, var(--m-tint2), transparent 70%), var(--m-tint); }
.m-rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.m-rings circle { fill: none; stroke: var(--m-line); }
.m-p { position: absolute; left: 50%; top: 50%; opacity: 0; transition: opacity .45s ease-out, transform .8s var(--ease); pointer-events: none; }
.m-p.ph { height: 88%; transform: translate(-50%, -44%) rotate(4deg) scale(.94); filter: drop-shadow(0 40px 50px rgba(8,14,24,.45)); }
.m-p.ph.on { opacity: 1; transform: translate(-50%, -50%) rotate(-3deg); }
.m-p.card { width: 78%; aspect-ratio: 16/10; object-fit: cover; border-radius: 16px; border: 1px solid var(--m-line); transform: translate(-50%, -44%) perspective(900px) rotateY(-14deg) rotateX(6deg) scale(.94); box-shadow: 0 40px 60px -30px rgba(8,14,24,.6); }
.m-p.card.on { opacity: 1; transform: translate(-50%, -50%) perspective(900px) rotateY(-8deg) rotateX(3deg); }
.m-cap { position: absolute; left: 22px; bottom: 18px; right: 22px; display: flex; justify-content: space-between; align-items: baseline; }
.m-cap .serif { font-size: 30px; line-height: 1; }
.m-cap .mono { font-size: 12px; color: var(--m-muted); }

/* open: the whole header band turns to the panel's glass, and the page behind blurs clear: no wash in day, the faintest dark tint at night */
.menu-open .frame::before { opacity: 1; background: var(--m-band); -webkit-backdrop-filter: blur(30px) saturate(1.4); backdrop-filter: blur(30px) saturate(1.4); }
.m-veil { position: fixed; inset: 0; z-index: 58; opacity: 0; visibility: hidden; background: transparent;
  -webkit-backdrop-filter: blur(14px) saturate(1.55); backdrop-filter: blur(14px) saturate(1.55); transition: opacity .35s ease-out, visibility 0s .35s; }
[data-surface="night"] .m-veil, [data-theme="dark"] .m-veil { background: rgba(3,6,12,.1); }
.menu-open .m-veil { opacity: 1; visibility: visible; transition: opacity .35s ease-out, visibility 0s; }
.docked .f-name { cursor: default; }
@media (prefers-reduced-motion: reduce) {
  .menu, .menu.open, .m-list a, .m-p, .m-veil, .menu-open .m-veil { transition: none !important; }
}

/* ── menu previews: each page shown by its own pieces ── */
.m-p.m-el { width: 84%; height: 80%; transform: translate(-50%, -44%) scale(.94); }
.m-p.m-el.on { opacity: 1; transform: translate(-50%, -50%); }
.m-el > * { position: absolute; }
.m-el .e-lbl { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--m-muted); }
/* top: the coin among currency signs */
.e-top .e-coin { left: 50%; top: 46%; width: 46%; transform: translate(-50%, -50%) rotate(-12deg); filter: drop-shadow(0 30px 40px rgba(8,14,24,.45)); }
.e-top .e-orb { left: 50%; top: 46%; border-radius: 50%; border: 1px solid var(--m-line); transform: translate(-50%, -50%); }
.e-top .o1 { width: 64%; aspect-ratio: 1; } .e-top .o2 { width: 86%; aspect-ratio: 1; border-style: dashed; opacity: .6; }
.e-top .e-sym { font: 300 34px var(--clash, sans-serif); color: var(--m-ink); opacity: .45; }
.e-top .s1 { left: 6%; top: 12%; } .e-top .s2 { right: 8%; top: 18%; font-size: 26px; } .e-top .s3 { left: 12%; bottom: 10%; font-size: 24px; } .e-top .s4 { right: 10%; bottom: 14%; }
/* the app: three of its cards, fanned, and the six names */
.e-app img { width: 46%; height: auto; filter: drop-shadow(0 24px 30px rgba(8,14,24,.45)); }
.e-app .c1 { left: 2%; top: 8%; width: 40%; transform: rotate(-4deg); } .e-app .c2 { left: 34%; top: 2%; width: 56%; transform: rotate(2deg); } .e-app .c3 { right: 0; top: 34%; width: 46%; transform: rotate(5deg); }
.e-tags { left: 0; right: 0; bottom: 2%; display: flex; flex-wrap: wrap; gap: 6px; }
.e-tags i { font: 600 12px var(--mono); font-style: normal; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--m-line); background: var(--m-tint); color: var(--m-ink); }
/* five things: five glass rows */
.e-five { display: flex; flex-direction: column; justify-content: center; gap: 9px; }
.e-five > span { position: relative; display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--m-line); background: var(--m-tint); font-weight: 700; font-size: 15px; color: var(--m-ink); box-shadow: 0 16px 30px -24px rgba(8,14,24,.6); }
.e-five > span:nth-child(2) { margin-left: 8%; } .e-five > span:nth-child(3) { margin-left: 16%; } .e-five > span:nth-child(4) { margin-left: 8%; }
.e-five i { font: 600 11px var(--mono); font-style: normal; color: var(--m-muted); }
/* planning: the curve rising to the freedom line */
.e-plan svg { left: 0; top: 6%; width: 100%; height: 82%; overflow: visible; }
.e-plan .gl line { stroke: var(--m-line); stroke-width: 1; stroke-dasharray: 2 6; }
.e-plan .goal { stroke: var(--m-ink); stroke-width: 1; stroke-dasharray: 6 5; opacity: .6; }
.e-plan .area { fill: var(--m-tint2); } .e-plan .ln { fill: none; stroke: var(--m-ink); stroke-width: 2.4; stroke-linecap: round; }
.e-plan .pt { fill: var(--m-ink); filter: drop-shadow(0 0 8px var(--m-ink)); }
.e-plan .e-lbl { right: 2%; top: 0; }
/* data: a lock over the encrypted letters */
.e-sec .lock { left: 50%; top: 30%; width: 34%; transform: translate(-50%, -50%); fill: none; stroke: var(--m-ink); stroke-width: 1.6; stroke-linecap: round; }
.e-sec .lock rect { fill: var(--m-tint); }
.e-code { left: 0; right: 0; top: 60%; display: flex; justify-content: center; gap: 5px; }
.e-code i { width: 7%; padding: 9px 0; text-align: center; border-radius: 8px; border: 1px solid var(--m-line); background: var(--m-tint); font: 600 14px var(--mono); font-style: normal; color: var(--m-ink); }
.e-code i:nth-child(odd) { opacity: .55; }
.e-sec .e-lbl { left: 0; right: 0; top: 80%; text-align: center; }
/* questions: one asked, one answered */
.e-qa .q, .e-qa .a { max-width: 72%; padding: 14px 18px; border-radius: 20px; font-size: 15px; line-height: 1.4; box-shadow: 0 18px 34px -24px rgba(8,14,24,.6); }
.e-qa .q { right: 0; top: 18%; background: var(--m-btn); color: var(--m-btn-ink); border-bottom-right-radius: 6px; font-weight: 700; }
.e-qa .a { left: 0; top: 46%; background: var(--m-tint2); color: var(--m-ink); border: 1px solid var(--m-line); border-bottom-left-radius: 6px; }
/* access: the invitation and its seal */
.e-acc .env { left: 6%; right: 6%; top: 14%; bottom: 14%; border-radius: 18px; border: 1px solid var(--m-line); background: var(--m-tint); padding: 26px 28px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 30px 50px -30px rgba(8,14,24,.6); transform: rotate(-3deg); }
.e-acc .env > * { position: relative; }
.e-acc .e-ttl { font: 600 26px var(--head, sans-serif); color: var(--m-ink); }
.e-acc .e-ln { height: 1px; width: 70%; background: var(--m-line); margin-top: 18px; } .e-acc .e-ln.s { width: 46%; margin-top: 6px; }
.e-acc .seal { right: 4%; bottom: 6%; width: 26%; transform: rotate(14deg); filter: drop-shadow(0 16px 20px rgba(8,14,24,.5)); }

/* the menu icon: two full lines and a shorter third, in the cell under the logo, padded like the logo */
.f-burger { position: fixed; z-index: 62; left: 0; top: var(--f); width: var(--f); height: var(--f); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px;
  padding: 0 calc(var(--f) * .3); border: 0; background: transparent; color: var(--fr-ink); cursor: pointer; }
.f-burger i { display: block; height: 1.6px; width: 100%; border-radius: 2px; background: currentColor; transition: width .3s var(--ease), transform .35s var(--ease), opacity .2s ease-out; }
.f-burger i:nth-child(3) { width: 62%; }
.f-burger:hover i:nth-child(3) { width: 100%; }
.menu-open .f-burger i:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.menu-open .f-burger i:nth-child(2) { opacity: 0; }
.menu-open .f-burger i:nth-child(3) { width: 100%; transform: translateY(-6.6px) rotate(-45deg); }
.f-burger:focus-visible { outline: 2px solid var(--fr-ink); outline-offset: -8px; border-radius: 10px; }
/* day / night: now in the cell under the page number, top right */
.mode { top: calc(var(--f) * 1.5); right: calc(var(--f) / 2); }
@media (max-width: 860px) { .mode { top: auto; } }
@media (max-width: 600px) { .f-burger { top: 0; left: var(--f); z-index: 66; padding: 0 calc(var(--f) * .24); } }   /* phones: beside the logo, in the header */

/* Request access: the menu's last row, full width, the same inset as the links; a slow light passes across it */
.m-list a.m-acc { position: relative; overflow: hidden; align-self: stretch; margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px; border-radius: 18px; font-size: 16px; isolation: isolate;
  background: linear-gradient(120deg, var(--m-btn) 0%, color-mix(in srgb, var(--m-btn) 82%, #8fa8cf) 100%); }
.m-list a.m-acc .m-t { font-size: 17px; }
.m-list a.m-acc::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%); transform: translateX(-120%); animation: m-sheen 3.6s ease-in-out infinite; }
.m-list a.m-acc .ic { width: 18px; height: 18px; transition: transform .45s var(--ease); }
.m-list a.m-acc.hot .ic, .m-list a.m-acc:hover .ic { transform: translate(4px, -4px); }
@keyframes m-sheen { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) { .m-list a.m-acc::after { animation: none; } }
/* menu preview for the market walk: the three photos, fanned */
.e-walk img { width: 64%; height: auto; border-radius: 12px; box-shadow: 0 24px 36px -20px rgba(8,14,24,.6); }   /* the market walk's own app pieces: the brief, search, Labs */
.e-walk .p1 { left: 0; top: 4%; transform: rotate(-4deg); } .e-walk .p2 { right: 0; top: 30%; width: 70%; transform: rotate(2deg); } .e-walk .p3 { left: 8%; top: 46%; width: 56%; transform: rotate(-2deg); }
