/* DALEEL | دليل — the public page (src/portal.js). Without scripts, or with reduced motion, every chapter is a
   plain section. html.mo (set by landing.js) turns the chapters into pinned scenes driven by scroll; html.gl is
   set once the 3D scene draws. Logical properties throughout: the page is Arabic RTL and English LTR. */
:root {
  --g: #2FBF71; --g2: #00853F; --g-hi: #E6EDF2; --g-deep: #0B2845; --red: #CE1126; --navy: #0B2845; --silver: #B9C3CA;
  --d0: #061525; --d1: #0A1E33; --d2: #0F263F; --ink-d: #F4F7FA; --mut-d: #9FB0C0; --line-d: rgba(244, 247, 250, .12);
  --l0: #FFFFFF; --l1: #F2F5F8; --ink: #0B2845; --txt: #34404C; --mut: #5D6875; --line: #E2E7EC;
  --hf: "Inter", "Noto Sans Arabic", system-ui, sans-serif;
  --bf: "Inter", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-h: 56px; --gut: max(20px, env(safe-area-inset-left), env(safe-area-inset-right));
  --ease: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); background: var(--d0); }
body { margin: 0; background: var(--l0); color: var(--txt); font-family: var(--bf); font-size: 17px; line-height: 1.75; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img { max-width: 100%; }
a { color: inherit; }
::selection { background: rgba(150, 190, 230, .35); }
h1, h2, h3, b, .brand b { font-family: var(--hf); }
h1, h2 { margin: 0; font-weight: 700; color: inherit; }
p { margin: 0; }
:lang(en) .mega, :lang(en) .big { letter-spacing: -.025em; }
.w { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: var(--gut); }
.i { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
[dir=rtl] .i.flip { transform: scaleX(-1); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--g); color: var(--d0); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--g); outline-offset: 3px; border-radius: 8px; }

/* ---------- Type ---------- */
.kick { color: var(--g); font-family: var(--hf); font-weight: 500; font-size: clamp(14px, 1.2vw, 17px); margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.kick::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
.center .kick { justify-content: center; }
.light .kick { color: var(--g2); }
.mega { font-size: clamp(44px, 7.2vw, 112px); line-height: 1.06; }
.big { font-size: clamp(34px, 5vw, 76px); line-height: 1.1; }
.sh { display: block; color: var(--mut); }
.dark .sh, .start .sh { color: #8FA3B8; }
.gold-t { background: linear-gradient(180deg, #FFFFFF 0%, #DCE4EA 55%, #9FB0C0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.7; max-width: 40ch; color: var(--mut); margin-top: 22px; }
.dark .lead, .start .lead { color: var(--mut-d); }
.center { text-align: center; } .center .lead { margin-inline: auto; }
.nw { white-space: nowrap; }
.ln { display: block; }
.b-hero .mega { font-size: clamp(40px, 4.9vw, 80px); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; text-decoration: none; font: inherit; font-family: var(--hf); font-weight: 500; font-size: 16px; border: 1px solid transparent; white-space: nowrap; transition: background .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn.lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn.sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.gold { background: #fff; color: var(--navy); font-weight: 600; box-shadow: 0 10px 28px rgba(0, 0, 0, .28), inset 0 -1px 0 rgba(11, 40, 69, .08); }
.gold:hover { background: #E6EDF2; }
html[data-nav=light] .top .gold, .light .gold, .nf .gold { background: var(--navy); color: #fff; }
html[data-nav=light] .top .gold:hover, .light .gold:hover { background: #164C7E; }
.glass { background: rgba(255, 255, 255, .08); color: var(--ink-d); border-color: rgba(255, 255, 255, .22); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.glass:hover { background: rgba(255, 255, 255, .16); }
.ghost { color: inherit; border-color: currentColor; border-color: color-mix(in srgb, currentColor 30%, transparent); }
.ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.center .ctas { justify-content: center; }

/* ---------- Header (glass, follows the chapter under it) ---------- */
.top { position: fixed; inset-inline: 0; top: 0; z-index: 50; height: calc(var(--nav-h) + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); color: var(--ink-d); background: rgba(6, 21, 37, .62); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line-d); transition: background .35s, color .35s, border-color .35s; }
html[data-nav=light] .top { color: var(--ink); background: rgba(255, 255, 255, .72); border-bottom-color: rgba(11, 40, 69, .08); }
.top .w { display: flex; align-items: center; gap: 14px; height: var(--nav-h); max-width: 1320px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.brand img { width: 34px; height: 34px; object-fit: contain; flex: none; }
.brand b { display: block; font-size: 15.5px; line-height: 1.2; font-weight: 700; white-space: nowrap; }
.brand small { display: block; font-size: 11.5px; opacity: .65; line-height: 1.3; white-space: nowrap; }
.chap { display: flex; gap: 2px; margin-inline: auto; }
.chap a { text-decoration: none; font-size: 13.5px; padding: 6px 12px; border-radius: 999px; opacity: .72; transition: opacity .2s, background .2s; white-space: nowrap; }
.chap a:hover, .chap a.on { opacity: 1; }
.chap a.on { background: color-mix(in srgb, currentColor 10%, transparent); }
.acts { display: flex; gap: 8px; align-items: center; margin-inline-start: auto; }
.chap + .acts { margin-inline-start: 0; }
.lng { text-decoration: none; font-size: 13.5px; font-weight: 600; padding: 6px 8px; opacity: .8; }
.lng:hover { opacity: 1; }
.top .gold { box-shadow: none; }
.top::after { content: ""; position: absolute; inset-inline-start: 0; bottom: -1px; height: 2px; width: calc(var(--read, 0) * 100%); background: var(--g); }

/* ---------- Chapters (static by default) ---------- */
main { display: block; }
.act, .start { position: relative; }
.dark { background: var(--d0); color: var(--ink-d); }
.light { background: var(--l0); color: var(--ink); }
.light.alt { background: var(--l1); }
.stage { position: relative; }
.beat { position: relative; }
.copy .big, .copy .mega { color: inherit; }

/* Act 1: the emblem and Iraq — static form */
.a1 { background: radial-gradient(120% 80% at 50% 0%, #12375C 0%, var(--d0) 60%); }
.a1 .stage { padding: calc(var(--nav-h) + 72px) var(--gut) 40px; max-width: 1200px; margin: 0 auto; display: grid; gap: 64px; }
.a1 .gl, .a1 .pins, .a1 .plabels, .a1 .cue, .a1 .glow, .a1 .flatmap { display: none; }
/* every governorate of Iraq, listed (the 3D map names them instead) */
.provs-static { list-style: none; margin: 0 auto; padding: 0 var(--gut) 28px; max-width: 1200px; display: flex; flex-wrap: wrap; gap: 8px; }
.provs-static li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-d); color: var(--ink-d); font-size: 14px; }
.a1 .seal { width: min(300px, 70vw); height: auto; justify-self: center; filter: drop-shadow(0 30px 60px rgba(150, 190, 230, .25)); order: -1; }
.a1 .b-hero .lead { max-width: 46ch; }
.trust { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--mut-d); font-size: 15px; }
.trust b { color: var(--ink-d); font-weight: 600; font-size: 17px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--g); flex: none; }
.places-static { list-style: none; margin: 0 auto; padding: 0 var(--gut) 72px; max-width: 1200px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.places-static li { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; }
.places-static img { width: 100%; height: 100%; object-fit: cover; display: block; }
.places-static span { position: absolute; inset: auto 0 0; padding: 30px 14px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); color: #fff; font-size: 14px; font-weight: 600; }

/* Act 2: Rafidain */
.a2 .stage { max-width: 1200px; margin: 0 auto; padding: 120px var(--gut); display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.beats { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 22px; max-width: 46ch; }
.beats li { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.7; color: var(--txt); padding-inline-start: 18px; border-inline-start: 2px solid var(--line); transition: color .4s, border-color .4s, opacity .4s; }
.dev-wrap { perspective: 1800px; }
.dev { background: linear-gradient(160deg, #1A2B3D, #07182A); border-radius: 30px; padding: 12px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .08), 0 50px 100px -30px rgba(11, 40, 69, .45), 0 30px 60px -40px rgba(11, 40, 69, .5); transform-origin: 50% 80%; }
.dev-bar { display: flex; gap: 6px; padding: 4px 10px 10px; }
.dev-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3A4A5C; }
.dev-scr { background: #fff; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; min-height: 460px; color: var(--ink); }
.dev-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.dev-h img { width: 30px; height: 30px; }
.dev-h b { display: block; font-size: 15px; line-height: 1.2; }
.dev-h small { display: block; font-size: 12px; color: var(--mut); }
.msgs { flex: 1; padding: 20px 18px; display: flex; flex-direction: column; gap: 14px; background: linear-gradient(#fff, #F7F9FB); }
.m { max-width: 92%; font-size: 15px; line-height: 1.75; }
.m.user { align-self: flex-start; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 18px; border-start-start-radius: 6px; }
.m.bot { align-self: stretch; }
.think { display: none; align-items: center; gap: 4px; color: var(--mut); font-size: 13px; }
.think i { width: 6px; height: 6px; border-radius: 50%; background: var(--g); animation: blink 1s infinite; }
.think i:nth-child(2) { animation-delay: .15s; } .think i:nth-child(3) { animation-delay: .3s; margin-inline-end: 6px; }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.ans { margin: 0; color: var(--txt); }
.srcs { margin-top: 14px; }
.srcs small { display: block; color: var(--mut); font-size: 12px; margin-bottom: 6px; }
.srcs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.srcs li { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 5px 10px; border-radius: 999px; background: #EAF0F6; color: var(--g-deep); font-weight: 600; }
.srcs .i { width: 14px; height: 14px; }
.dev-in { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 14px 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 16px; color: var(--mut); font-size: 14px; }
.dev-in .i { color: var(--g2); }
[dir=rtl] .dev-in .i { transform: scaleX(-1); }

/* Act 3: the guide */
.a3 { background: radial-gradient(90% 70% at 50% 100%, #0F2F50, var(--d0) 70%); }
.a3 .stage { max-width: 1200px; margin: 0 auto; padding: 120px var(--gut); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.a3 .copy.center { text-align: start; }
.a3 .copy.center .kick { justify-content: flex-start; }
.a3 .copy.center .lead { margin-inline: 0; }
.drum-wrap { height: 460px; perspective: 1100px; -webkit-mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent); display: grid; place-items: center; overflow: hidden; }
.drum { --r: 260px; list-style: none; margin: 0; padding: 0; position: relative; width: min(100%, 480px); height: 46px; transform-style: preserve-3d; transform: rotateX(calc(var(--rot, 0) * 1deg)); }
.drum li { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 18px; border-radius: 12px; background: linear-gradient(180deg, rgba(150, 190, 230, .16), rgba(150, 190, 230, .06)); border: 1px solid rgba(150, 190, 230, .25); color: var(--g-hi); font-size: 14.5px; font-weight: 500; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; backface-visibility: hidden; -webkit-backface-visibility: hidden; transform: rotateX(calc(var(--i) * -360deg / var(--n))) translateZ(var(--r)); }
.nums { grid-column: 1 / -1; list-style: none; margin: 30px 0 0; padding: 30px 0 0; border-top: 1px solid var(--line-d); display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.nums b { display: block; font-size: clamp(40px, 5.4vw, 80px); line-height: 1; font-weight: 700; background: linear-gradient(180deg, #FFFFFF, #B9C3CA 80%); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.nums span { display: block; margin-top: 10px; color: var(--mut-d); font-size: 15px; }

/* Act 4: the path */
.a4 { padding: 130px 0; }
.path-w { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.copy.sticky { position: sticky; top: calc(var(--nav-h) + 48px); }
.path-card { margin-top: 30px; padding: 22px 24px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 50px -30px rgba(11, 40, 69, .25); }
.path-card b { font-size: 19px; color: var(--ink); }
.path-card p { margin-top: 8px; color: var(--mut); font-size: 15.5px; }
.path-card .time { display: flex; gap: 10px; align-items: baseline; margin-top: 14px; color: var(--g-deep); font-family: var(--hf); font-weight: 500; }
.path-card .time span { color: var(--mut); font-size: 13px; font-family: var(--bf); }
.note { margin-top: 18px; color: var(--mut); font-size: 14.5px; max-width: 46ch; }
.line { --p: 1; list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 8px; }
.line::before, .line::after { content: ""; position: absolute; inset-inline-start: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--line); border-radius: 2px; }
.line::after { background: linear-gradient(var(--g-hi), var(--g2)); bottom: auto; height: calc((100% - 44px) * var(--p)); }
.line li { position: relative; display: flex; gap: 18px; align-items: flex-start; padding: 12px 0; }
.line .n { position: relative; z-index: 1; flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); color: var(--mut); font-family: var(--hf); font-weight: 700; font-size: 15px; transition: background .4s, border-color .4s, color .4s, transform .4s var(--ease); }
.line li.on .n { background: var(--g2); border-color: transparent; color: #fff; transform: scale(1.06); }
.line b { display: block; font-size: 17px; line-height: 1.5; color: var(--ink); padding-top: 8px; font-weight: 500; }
.line small { display: block; color: var(--mut); font-size: 13.5px; margin-top: 2px; }

/* Act 5: the business cards */
.a5 .stage { padding: 120px var(--gut) 90px; display: grid; gap: 50px; justify-items: center; overflow: hidden; }
.fan { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; max-width: 1100px; }
.fan li { perspective: 1400px; }
.bc { position: relative; width: min(320px, 78vw); aspect-ratio: 1.75; transform-style: preserve-3d; transition: transform .1s linear; }
.bc-f, .bc-b { position: absolute; inset: 0; border-radius: 18px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.bc-f { background: linear-gradient(145deg, #FFFFFF, #F2F5F8); border: 1px solid #E2E7EC; box-shadow: 0 30px 60px -30px rgba(11, 40, 69, .35); padding: 20px 22px; display: flex; flex-direction: column; color: var(--ink); }
.bc-f::after { content: ""; position: absolute; inset-inline-end: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(rgba(150, 190, 230, .22), transparent 70%); }
.bc-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #EAF0F6; color: var(--g2); }
.red { display: block; height: 10px; border-radius: 6px; background: linear-gradient(90deg, #E7ECF0, #D8DFE5); margin-top: 14px; }
.red.r1 { width: 72%; height: 13px; } .red.r2 { width: 46%; margin-top: 8px; }
.bc-f b { margin-top: auto; font-size: 14.5px; line-height: 1.45; font-weight: 500; color: var(--g-deep); }
.bc-f small { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--mut); margin-top: 4px; }
.bc-f small .i { width: 13px; height: 13px; }
.bc-f img { position: absolute; inset-inline-end: 18px; top: 20px; width: 32px; height: 32px; }
.bc-f b { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.bc-b { transform: rotateY(180deg); background: radial-gradient(120% 120% at 30% 20%, #12375C, #061525); color: var(--g-hi); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-size: 13.5px; font-family: var(--hf); border: 1px solid rgba(150, 190, 230, .35); }
.bc-b img { width: 84px; height: 84px; }
.chips { width: 100%; text-align: center; }
.chips small { color: var(--mut); font-size: 13px; }
.chips ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chips li { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; color: var(--txt); white-space: nowrap; }
.chips li:nth-child(n+13) { display: none; }   /* the list is doubled for the moving strip */

/* Act 6: the council on the ground */
.a6 .stage { padding: 110px 0; }
.track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gut) 10px; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.panel { flex: none; scroll-snap-align: center; border-radius: 28px; }
.panel.intro { width: min(520px, 86vw); align-self: center; padding-inline-end: 20px; }
.svc { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 18px; }
.svc li { display: flex; gap: 14px; align-items: flex-start; }
.svc .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(150, 190, 230, .14); color: var(--g); flex: none; }
.svc b { display: block; font-size: 17px; color: var(--ink-d); font-weight: 500; }
.svc small { display: block; color: var(--mut-d); font-size: 14.5px; }
.panel.ph { position: relative; width: min(64vw, 760px); height: min(70svh, 560px); overflow: hidden; margin: 0; background: var(--d2); }
.panel.ph img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(var(--z, 1.06)); transition: transform .2s linear; }
.panel.ph figcaption { position: absolute; inset: auto 0 0; padding: 60px 26px 22px; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); color: #fff; }
.panel.ph b { display: block; font-size: clamp(18px, 1.8vw, 24px); font-weight: 500; }
.panel.ph small { display: block; font-size: 12px; opacity: .7; margin-top: 2px; }

/* The way in */
.start { background: radial-gradient(80% 70% at 50% 30%, #12375C, var(--d0) 70%); color: var(--ink-d); padding: 140px 0 120px; text-align: center; overflow: hidden; }
.start .lead { margin-inline: auto; max-width: 46ch; }
.start .ctas { justify-content: center; }
.coin { width: min(220px, 52vw); margin: 0 auto 40px; perspective: 900px; }
.coin img { display: block; width: 100%; height: auto; border-radius: 50%; filter: drop-shadow(0 30px 50px rgba(150, 190, 230, .3)); }
.free { margin-top: 22px; color: var(--g); font-size: 14px; font-family: var(--hf); }

.nf { padding: 180px 0 120px; text-align: center; background: var(--d0); color: var(--ink-d); }
.nf .btn { margin-top: 30px; }

/* ---------- Footer ---------- */
.foot { background: var(--d0); color: var(--mut-d); font-size: 13px; border-top: 1px solid var(--line-d); padding-bottom: env(safe-area-inset-bottom); }
.foot .w { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 22px; padding-top: 22px; padding-bottom: 22px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot a { color: #C9D3DC; text-decoration: none; }
.foot a:hover { color: var(--g); }
.credits { flex-basis: 100%; }
.credits summary { cursor: pointer; color: #C9D3DC; width: fit-content; }
.credits ul { margin: 10px 0 0; padding-inline-start: 18px; display: grid; gap: 4px; }
.credits a { text-decoration: underline; text-decoration-color: rgba(150, 190, 230, .4); }

/* ---------- DALEEL: the mark, the lockup, the council's initiative ---------- */
.brand .bm-l { display: none; }
html[data-nav=light] .brand .bm-d { display: none; } html[data-nav=light] .brand .bm-l { display: block; }
.brand b { letter-spacing: .01em; }
/* the lockup of the brand profile: DALEEL | دليل (Arabic first on Arabic pages), a thin rule between */
.lockup { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; font-family: var(--hf); line-height: 1; }
.lockup b { font-size: clamp(22px, 2.2vw, 32px); font-weight: 800; letter-spacing: .02em; color: inherit; }
.lockup b:last-child { font-weight: 700; }
.lockup i { width: 1.5px; height: 1.3em; background: currentColor; opacity: .55; }
.lockup.center-l { justify-content: center; margin: -12px 0 26px; color: var(--ink-d); }
.btn.navy { background: var(--navy); color: #fff; box-shadow: 0 10px 24px -10px rgba(11, 40, 69, .55); }
.btn.navy:hover { background: #164C7E; }
.init { background: var(--l0); color: var(--ink); padding: 130px 0; border-top: 1px solid var(--line); }
.init-w { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: center; }
.init-seal { justify-self: center; width: min(360px, 70vw); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #FFFFFF, #EEF2F5 70%); box-shadow: 0 40px 80px -40px rgba(11, 40, 69, .35), inset 0 0 0 1px var(--line); }
.init-seal img { width: 82%; height: auto; }
.init .big { color: var(--navy); }
.init .lead { max-width: 52ch; }
.init-svc { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.init-svc li { display: flex; gap: 12px; align-items: baseline; color: var(--txt); font-size: 16px; line-height: 1.6; }
.init-svc .i { width: 16px; height: 16px; flex: none; color: var(--g2); transform: translateY(3px); }
[dir=rtl] .init-svc .i { transform: translateY(3px) scaleX(-1); }
.init .ghost { color: var(--navy); }
.foot .by { display: inline-flex; align-items: center; gap: 10px; }
.foot .by img { width: 28px; height: 28px; border-radius: 50%; background: #fff; padding: 2px; flex: none; }
.coin img { border-radius: 22%; }
@media (max-width: 900px) {
  .init { padding: 90px 0; }
  .init-w { grid-template-columns: 1fr; gap: 36px; }
  .init-seal { width: min(240px, 60vw); }
}

/* =====================================================================================================
   The scroll story (html.mo): pinned scenes, beats driven by scroll. Lengths are in screen heights.
   ===================================================================================================== */
html.mo .act[data-act] { height: calc(var(--len) * 100svh); }
html.mo .a1 { --len: 7; } html.mo .a2 { --len: 4.2; } html.mo .a3 { --len: 3.4; } html.mo .a5 { --len: 3.6; } html.mo .a6 { --len: 4; }
html.mo .act[data-act] > .stage { position: sticky; top: 0; height: 100svh; overflow: hidden; margin: 0; max-width: none; }
html.mo .beat { position: absolute; opacity: var(--o, 0); transform: translate3d(0, calc(var(--cy, 0%) + var(--y, 0) * 1px), 0); visibility: hidden; will-change: opacity, transform; }
html.mo .beat.on { visibility: visible; }

/* Act 1 */
html.mo .a1 .stage { padding: 0; display: block; background: radial-gradient(110% 70% at 50% 10%, #0F2F50 0%, var(--d0) 65%); }
html.mo .a1 .glow { display: block; position: absolute; inset: 0; background: radial-gradient(42vmax 42vmax at var(--gx, 30%) var(--gy, 50%), rgba(150, 190, 230, .16), transparent 70%); opacity: calc(1 - var(--p1, 0)); pointer-events: none; }
html.mo .a1 .gl { display: block; position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s var(--ease); }
html.gl .a1 .gl { opacity: 1; }
html.mo .a1 .seal { position: absolute; top: 50%; inset-inline-end: calc(25vw - min(25svh, 20vw)); width: min(50svh, 40vw); max-width: none; transform: translateY(-50%) rotate(calc(var(--p1, 0) * -40deg)) scale(calc(1 - var(--p1, 0) * .6)); opacity: calc(1 - var(--p1, 0) * 1.6); transition: opacity .8s; }
html.gl .a1 .seal { opacity: 0 !important; }
html.mo .a1 .flatmap { display: block; position: absolute; top: 50%; inset-inline-end: 6vw; width: min(46vw, 78svh); height: auto; transform: translateY(-50%) scale(calc(.9 + var(--p2, 0) * .1)); opacity: var(--p2, 0); }
html.gl .a1 .flatmap { display: none; }
html.mo .a1 .beat { --cy: -50%; inset-inline-start: max(var(--gut), calc((100vw - 1200px) / 2 + 24px)); width: min(46vw, 640px); top: 50%; }
html.mo .a1 .b-hero { width: min(50vw, 700px); }
html.mo .a1 .b-hero { top: calc(var(--nav-h) / 2 + 50%); }
html.mo .a1 .side .lead { max-width: 34ch; }
html.mo .a1 .places-static, html.mo .a1 .provs-static { display: none; }
html.mo .a1 .cue { display: flex; position: absolute; bottom: max(26px, env(safe-area-inset-bottom)); inset-inline: 0; margin: 0 auto; width: fit-content; align-items: center; gap: 8px; color: var(--mut-d); font-size: 13px; opacity: calc(1 - var(--p1, 0) * 8); }
html.mo .a1 .cue .i { width: 16px; height: 16px; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }
html.gl .a1 .pins { display: block; position: absolute; inset: 0; pointer-events: none; }
html.gl .a1 .plabels { display: block; position: absolute; inset: 0; pointer-events: none; }
.plabel { position: absolute; top: 0; left: 0; translate: -50% -50%; padding: 3px 10px; border-radius: 999px; background: rgba(6, 21, 37, .72); border: 1px solid rgba(230, 237, 242, .22); color: #F4F7FA; font-family: var(--hf); font-size: 12.5px; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity .45s; will-change: transform; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.plabel.vis { opacity: 1; }
.plabel::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--g); margin-inline-end: 6px; vertical-align: 1px; }
@media (max-width: 760px) { .plabel { font-size: 9.5px; padding: 1px 6px; } .plabel::before { display: none; } }
.pin { position: absolute; top: 0; left: 0; margin: 0; opacity: 0; transition: opacity .5s; will-change: transform; }
.pin.vis { opacity: 1; }
.pin .dot { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--g-hi); box-shadow: 0 0 0 4px rgba(150, 190, 230, .3), 0 0 22px rgba(230, 237, 242, .9); }
.pin .dot::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(230, 237, 242, .7); animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.pin .card { position: absolute; bottom: 22px; left: 0; width: 248px; transform: translateX(-50%) translateY(14px) scale(.92); transform-origin: 50% 100%; opacity: 0; transition: opacity .45s, transform .6s var(--ease); background: rgba(8, 26, 45, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(230, 237, 242, .25); border-radius: 18px; padding: 6px; box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
.pin.act .card { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
.pin .card img { display: block; width: 100%; height: 140px; object-fit: cover; border-radius: 13px; }
.pin figcaption { display: flex; align-items: center; gap: 6px; padding: 8px 8px 4px; color: var(--ink-d); font-size: 14px; font-family: var(--hf); font-weight: 500; }
.pin figcaption .i { width: 15px; height: 15px; color: var(--g); }

/* Act 2 */
html.mo .a2 .stage { display: grid; max-width: none; padding: calc(var(--nav-h) + 30px) max(var(--gut), calc((100vw - 1200px) / 2 + 24px)) 30px; align-content: center; }
html.mo .beats li { opacity: .3; border-inline-start-color: var(--line); }
html.mo .beats li.on { opacity: 1; color: var(--ink); border-inline-start-color: var(--g); }
html.mo .dev { transform: rotateX(calc((1 - var(--e, 0)) * 32deg)) rotateY(calc((1 - var(--e, 0)) * var(--ry, -14deg))) scale(calc(.86 + var(--e, 0) * .14)) translateY(calc((1 - var(--e, 0)) * 60px)); opacity: calc(.3 + var(--e, 0) * .7); }
html.mo .typed::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-inline-start: 2px; vertical-align: -3px; background: currentColor; animation: blink 1s steps(1) infinite; }
html.mo .typed.done::after { display: none; }
html.mo .m.user { visibility: hidden; }
html.mo .m.user.on { visibility: visible; }
html.mo .think.on { display: inline-flex; }
html.mo .ans .wd { opacity: 0; transition: opacity .25s; }
html.mo .ans .wd.on { opacity: 1; }
html.mo .srcs { opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s var(--ease); }
html.mo .srcs.on { opacity: 1; transform: none; }
html.mo .dev-scr { height: min(560px, 62svh); min-height: 0; }
html.mo .msgs { overflow: hidden; }

/* Act 3 */
html.mo .a3 .stage { max-width: none; padding: calc(var(--nav-h) + 20px) max(var(--gut), calc((100vw - 1200px) / 2 + 24px)) 40px; align-content: center; }

/* Act 4 */
html.mo .line li { opacity: .45; transition: opacity .4s; }
html.mo .line li.on { opacity: 1; }

/* Act 5 */
html.mo .a5 .stage { display: grid; grid-template-rows: auto 1fr auto; gap: 0; padding: calc(var(--nav-h) + 40px) 0 28px; justify-items: stretch; }
html.mo .fan { display: block; position: relative; max-width: none; margin: 0; }
html.mo .fan li { position: absolute; left: 50%; top: 50%; margin: 0; will-change: transform; }
html.mo .bc { transform: rotateY(calc(var(--f, 0) * 180deg)); }
html.mo .chips ul { flex-wrap: nowrap; width: max-content; animation: strip 50s linear infinite; }
html.mo .chips li:nth-child(n+13) { display: block; }
html.mo .chips { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
@keyframes strip { to { transform: translateX(-50%); } }
html.mo[dir=rtl] .chips ul { animation-name: strip-rtl; }
@keyframes strip-rtl { to { transform: translateX(50%); } }

/* Act 6 */
html.mo .a6 .stage { display: flex; align-items: center; padding: var(--nav-h) 0 0; }
html.mo .track { overflow: visible; scroll-snap-type: none; padding-inline: max(var(--gut), calc((100vw - 1200px) / 2 + 24px)); gap: 28px; will-change: transform; transform: translate3d(calc(var(--tx, 0) * 1px), 0, 0); }

/* The way in */
html.mo .coin img { animation: coin 9s linear infinite; }
@keyframes coin { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }

/* ---------- Tablets ---------- */
@media (max-width: 1080px) {
  .chap { display: none; }
  .a3 .stage, .path-w { grid-template-columns: 1fr; }
  .path-w { gap: 40px; }
  .copy.sticky { position: static; }
  .nums { grid-template-columns: repeat(2, 1fr); }
  html.mo .a3 .stage { grid-template-rows: auto 1fr auto; padding-top: calc(var(--nav-h) + 30px); gap: 10px; }
  html.mo .drum-wrap { height: 100%; min-height: 200px; }
  html.mo .nums { margin-top: 0; padding-top: 18px; }
}
@media (max-width: 900px) {
  .a2 .stage { grid-template-columns: 1fr; gap: 36px; }
  html.mo .a2 .stage { grid-template-rows: auto 1fr; gap: 18px; padding-top: calc(var(--nav-h) + 22px); align-content: stretch; }
  html.mo .a2 .copy { position: relative; }
  html.mo .a2 .beats { display: block; position: relative; min-height: 6.2em; margin-top: 14px; }
  html.mo .beats li { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; border: 0; padding: 0; }
  html.mo .beats li.on { opacity: 1; }
  html.mo .a2 .big { font-size: clamp(28px, 7vw, 46px); }
  html.mo .a2 .kick { margin-bottom: 8px; }
  html.mo .dev-wrap { align-self: start; display: flex; justify-content: center; min-height: 0; }
  html.mo .dev { width: min(520px, 100%); --ry: 0deg; }
  html.mo .dev-scr { height: max(280px, min(480px, calc(100svh - var(--nav-h) - 360px))); }
  html.mo .dev { padding: 8px; border-radius: 26px; }
  html.mo .dev-bar { display: none; }
  html.mo .dev-h { padding: 10px 14px; }
  html.mo .msgs { padding: 14px; gap: 10px; }
  html.mo .m { font-size: 14px; line-height: 1.7; }
  html.mo .dev-in { margin: 0 10px 10px; padding: 10px 14px; font-size: 13px; }
  .dev-in span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
}
/* Act 1 on portrait screens: emblem above, words below */
@media (max-aspect-ratio: 1/1), (max-width: 760px) {
  html.mo .a1 .beat { --cy: 0%; inset-inline: var(--gut); width: auto; top: auto; bottom: max(64px, calc(env(safe-area-inset-bottom) + 52px)); }
  html.mo .a1 .b-hero { top: auto; }
  html.mo .a1 .side { padding: 22px; border-radius: 24px; background: rgba(6, 21, 37, .55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line-d); bottom: max(28px, env(safe-area-inset-bottom)); }
  html.mo .a1 .side .lead { margin-top: 10px; font-size: 16px; }
  html.mo .a1 .seal { top: calc(var(--nav-h) + 4svh); inset-inline-end: calc(50vw - min(25vw, 15svh)); width: min(50vw, 30svh); transform: rotate(calc(var(--p1, 0) * -40deg)) scale(calc(1 - var(--p1, 0) * .6)); }
  html.mo .a1 .flatmap { top: calc(var(--nav-h) + 3svh); inset-inline-end: 10vw; width: 80vw; max-height: 52svh; transform: scale(calc(.9 + var(--p2, 0) * .1)); }
  .pin .card { width: 200px; }
  .pin .card img { height: 112px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .mega { font-size: clamp(38px, 10.4vw, 64px); }
  .big { font-size: clamp(30px, 8.4vw, 50px); }
  .lead { margin-top: 14px; }
  .ctas { margin-top: 22px; }
  .ctas .btn { flex: 1 1 160px; }
  .brand small { display: none; }
  .top .ghost { display: none; }
  html.mo .a1 .b-hero .kick, html.mo .a1 .b-hero .lockup { display: none; }
  html.mo .a1 .b-hero .mega { font-size: clamp(30px, 8.4vw, 52px); }
  html.mo .a1 .b-hero .lead { font-size: 16px; }
  .trust { font-size: 13.5px; margin-top: 18px; gap: 4px 16px; }
  .trust b { font-size: 15px; }
  .a4 { padding: 90px 0; }
  .start { padding: 100px 0 90px; }
  .panel.ph { width: 82vw; height: min(62svh, 520px); }
  html.mo .a6 .stage { align-items: center; }
  .svc { margin-top: 20px; gap: 12px; }
  .svc small { font-size: 13.5px; }
  .drum { --r: 190px; height: 40px; }
  .drum li { font-size: 13px; }
  .nums { gap: 14px; }
  .nums span { font-size: 13.5px; margin-top: 6px; }
  .bc { width: min(272px, 72vw); }
}
@media (max-width: 380px) {
  .brand b { font-size: 14px; }
  .lng { padding: 6px 4px; }
}
@media (max-height: 780px) and (max-width: 760px) {
  html.mo .a1 .b-hero .trust { display: none; }
}
@media (max-height: 720px) and (max-width: 760px) {
  html.mo .a1 .b-hero .trust { display: none; }
  html.mo .a1 .b-hero .lead { display: none; }
}
/* short, wide screens: a phone held sideways */
@media (max-height: 560px) and (min-aspect-ratio: 1/1) {
  .mega { font-size: clamp(30px, 5.4vw, 56px); }
  .big { font-size: clamp(26px, 4.4vw, 44px); }
  .lead { font-size: 15px; margin-top: 10px; }
  .ctas { margin-top: 16px; }
  .btn.lg { min-height: 46px; padding: 0 22px; font-size: 15px; }
  html.mo .a1 .b-hero .trust, html.mo .a1 .b-hero .kick, html.mo .a1 .b-hero .lead { display: none; }
  html.mo .a1 .b-hero .mega { font-size: clamp(28px, 4.6vw, 46px); }
  html.mo .a1 .cue { display: none; }
  html.mo .a2 .stage { grid-template-columns: 1fr 1.15fr; grid-template-rows: none; gap: 28px; align-content: center; padding-top: calc(var(--nav-h) + 10px); padding-bottom: 10px; }
  html.mo .a2 .beats { display: none; }
  html.mo .a2 .dev-wrap { align-self: center; }
  html.mo .dev-scr { height: calc(100svh - var(--nav-h) - 50px); }
  html.mo .a3 .stage { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; gap: 8px 24px; padding-top: calc(var(--nav-h) + 8px); padding-bottom: 8px; }
  html.mo .a3 .lead { display: none; }
  html.mo .drum-wrap { min-height: 0; height: 100%; }
  html.mo .nums { grid-template-columns: repeat(4, 1fr); padding-top: 10px; gap: 10px; }
  .nums b { font-size: 30px; } .nums span { font-size: 12px; margin-top: 4px; }
  html.mo .a5 .stage { padding-top: calc(var(--nav-h) + 12px); }
  html.mo .a5 .lead, html.mo .a5 .kick { display: none; }
  .bc { width: min(230px, 30vw); }
  .panel.ph { height: calc(100svh - var(--nav-h) - 40px); width: min(60vw, 560px); }
  html.mo .a6 .big { font-size: 30px; } .svc { margin-top: 12px; gap: 8px; } .svc small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- The investor guide's public pages (/guide, /guide/<chapter>: src/portal.js guideIndex / guideChapter) ----------
   The landing page's type, colours and buttons; a dark head under the fixed bar, then a light body. */
.gd-hero { padding: calc(var(--nav-h) + env(safe-area-inset-top) + 64px) 0 56px; }
.gd-hero .big { font-size: clamp(30px, 4.2vw, 54px); max-width: 26ch; }
.gd-hero .lead { max-width: 62ch; }
.crumbs { margin-bottom: 22px; font-size: 14px; color: var(--mut-d); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs a { color: var(--mut-d); text-decoration: none; } .crumbs a:hover { color: var(--ink-d); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-d); }
.crumbs .sep { margin-inline: 10px; opacity: .6; }
.gd-body { padding: 56px 0 96px; }
.gd-w { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.gd-h2 { font-size: clamp(20px, 2vw, 26px); color: var(--navy); margin: 0 0 14px; }
.gd-main .gd-h2 + .gd-p { margin-top: -6px; }
.gd-main .gd-list + .gd-h2 { margin-top: 44px; }
.gd-p { color: var(--mut); font-size: 15.5px; margin-bottom: 16px; max-width: 62ch; }
.gd-list { margin: 0; padding-inline-start: 1.5em; display: grid; gap: 10px; color: var(--txt); }
.gd-list li::marker { color: var(--g2); font-weight: 600; }
.gd-src { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.gd-src li { padding-inline-start: 14px; border-inline-start: 2px solid var(--line); }
.gd-src a { color: var(--navy); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(11, 40, 69, .25); text-underline-offset: 3px; overflow-wrap: anywhere; }
.gd-src a:hover { text-decoration-color: currentColor; }
.gd-src small { display: block; color: var(--mut); font-size: 13px; text-align: start; }
.gd-cta { position: sticky; top: calc(var(--nav-h) + 24px); background: var(--l1); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.gd-cta h2 { font-size: 22px; color: var(--navy); margin-bottom: 10px; }
.gd-cta p { color: var(--txt); font-size: 16px; line-height: 1.7; }
.gd-cta .ctas { margin-top: 22px; }
.gd-cta .btn { white-space: normal; text-align: center; }
.gd-read { margin-top: 18px; } .gd-read a { color: var(--navy); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; } .gd-read a:hover { text-decoration: underline; }
.gd-note { margin-top: 14px; font-size: 13px; color: var(--mut) !important; }
.gd-pn { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; border-top: 1px solid var(--line); padding-top: 26px; margin-top: 8px; }
.gd-pn a { color: var(--navy); text-decoration: none; font-weight: 500; line-height: 1.5; }
.gd-pn a:hover { text-decoration: underline; }
.gd-pn a small { display: block; color: var(--mut); font-size: 13px; font-weight: 400; }
.gd-pn a[rel=next] { text-align: end; }
.gd-pn .all { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; white-space: nowrap; }
.gd-idx { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.gd-idx a { display: flex; gap: 14px; align-items: flex-start; height: 100%; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
.gd-idx a:hover { border-color: rgba(11, 40, 69, .35); box-shadow: 0 12px 30px -20px rgba(11, 40, 69, .5); }
.gd-idx .n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 600; font-size: 14px; font-family: var(--hf); }
.gd-idx b { display: block; font-size: 16px; line-height: 1.5; }
.gd-idx small { display: block; color: var(--mut); font-size: 13px; margin-top: 4px; }
.gd-body > .w > .gd-cta { position: static; max-width: 760px; }
@media (max-width: 900px) {
  .gd-w { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .gd-cta { position: static; }
  .gd-pn { grid-template-columns: 1fr; } .gd-pn a[rel=next] { text-align: start; } .gd-pn .all { justify-self: start; }
}
