/* jaziplace.com — studio site, rebuilt 17 Nov 2026. Direction «contact sheet»: real app screens shown all at once,
   then one tab per app. Brand kept: navy #0C0E22, the J mark's violet #6521FA (the brand's own accent), one face
   (Readex Pro, Arabic and Latin). Square corners everywhere. Motion opts in through html.motion (boot.js);
   with Reduce Motion or no script, everything is shown at rest. Graphics never mirror: they sit in dir="ltr". */

@font-face { font-family: 'Readex'; src: url(/assets/fonts/ReadexPro-arabic.woff2) format('woff2'); font-weight: 160 700; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: 'Readex'; src: url(/assets/fonts/ReadexPro-latin.woff2) format('woff2'); font-weight: 160 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212; }

:root {
  --night: #0C0E22; --night-2: #151838; --night-3: #20244D; --paper: #F6F7FB; --paper-2: #E9EBF4;
  --ink: #0F1224; --ink-soft: #464B68; --text: #EEF0FB; --soft: #AEB3D1;
  --violet: #6521FA; --violet-t: #A68BFF; --violet-l: #D9CCFF;
  --green: #2FB36B; --gold: #C29E73; --kh-navy: #18212E; --kh-ground: #101721; --lilac: #8968F4; --cobalt: #2E66F2; --amber: #E0A43A;
  --m: clamp(16px, 2.2vw, 32px);
  --gap: 12px;
  --fs-s: 0.875rem; --fs-b: 1.0625rem; --fs-l: clamp(1.1875rem, 1.2vw + .6rem, 1.375rem);
  --fs-m: clamp(1.625rem, 2.4vw, 2.25rem); --fs-xl: clamp(2.125rem, 4.4vw, 4rem); --fs-d: clamp(3.25rem, 8.5vw, 8.5rem);
  --ease: cubic-bezier(.2, 0, 0, 1); --spring: cubic-bezier(.34, 1.4, .5, 1);
  --t1: 160ms; --t2: 420ms; --t3: 900ms;
  --bar: 64px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 16px); background: var(--night); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--night); color: var(--text); font: 400 var(--fs-b)/1.6 'Readex', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  font-variation-settings: normal; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .2em; }
h1, h2, h3, h4, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 700; text-wrap: balance; letter-spacing: -.02em; line-height: 1.1; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) h4 { letter-spacing: 0; line-height: 1.3; }
p { text-wrap: pretty; }
.num { font-variant-numeric: tabular-nums; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 3px solid var(--violet-t); outline-offset: 3px; }
button { font: inherit; color: inherit; }

.skip { position: fixed; inset-inline-start: 12px; top: 8px; z-index: 50; background: var(--paper); color: var(--ink); padding: 10px 16px; transform: translateY(-160%); transition: transform var(--t1) var(--ease); }
.skip:focus { transform: none; }

/* ───────── buttons ───────── */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; background: var(--violet); color: #fff; font-weight: 600;
  text-decoration: none; border: 0; transition: background var(--t1) var(--ease), transform var(--t1) var(--ease); }
.btn:hover { background: #7436FF; }
.btn:active { transform: scale(.97); }
.arr { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; flex: none; transition: transform var(--t1) var(--ease); }
[dir=rtl] .arr:not(.ext) { transform: scaleX(-1); }
.btn:hover .arr:not(.ext) { transform: translateX(4px); }
[dir=rtl] .btn:hover .arr:not(.ext) { transform: scaleX(-1) translateX(4px); }
.btn:hover .arr.ext { transform: translate(2px, -2px); }
.tlink { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; }
.tlink:hover { text-decoration-color: var(--violet-t); }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; background: var(--night-3); color: var(--text); border: 0; font-size: var(--fs-s); font-weight: 500; cursor: pointer;
  transition: background var(--t1) var(--ease), color var(--t1) var(--ease), transform var(--t1) var(--ease); }
.chip:hover { background: #2B3062; }
.chip:active { transform: scale(.96); }
.chip[aria-pressed=true] { background: var(--paper); color: var(--ink); }
.big { font-size: var(--fs-xl); font-weight: 700; line-height: 1; letter-spacing: -.02em; }

/* ───────── bar ───────── */
.bar { position: fixed; inset: 0 0 auto; z-index: 30; height: var(--bar); background: var(--night); }
.bar-in { height: 100%; display: flex; align-items: center; gap: 32px; padding-inline: var(--m); }
.brand, .cell-mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand { color: #fff; }
.mark { height: 34px; width: auto; flex: none; }
.wm { display: grid; gap: 3px; line-height: 1; }
.wm b { font-size: 1rem; font-weight: 700; letter-spacing: .14em; }
.wm i { font-style: normal; font-size: .8125rem; font-weight: 500; opacity: .78; }
.cell-mark { color: var(--night); }
.cell-mark .mark { height: 44px; }
.cell-mark .wm b { font-size: 1.1875rem; }
.nav { display: flex; gap: 28px; margin-inline-start: auto; }
.nav a, .lang { position: relative; text-decoration: none; font-size: var(--fs-b); padding-block: 8px; }
.nav a::after, .lang::after { content: ''; position: absolute; inset-inline: 0; bottom: 2px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: var(--from, left); transition: transform var(--t2) var(--ease); }
[dir=rtl] .nav a::after, [dir=rtl] .lang::after { --from: right; }
.nav a:hover::after, .lang:hover::after { transform: none; }
.lang { font-weight: 600; }
@media (max-width: 759px) { .nav { display: none; } .lang { margin-inline-start: auto; } .brand .mark { height: 30px; } }

main { display: block; }

/* ───────── hero: the sheet with one text cell ───────── */
.hero { position: relative; min-height: max(100svh, 680px); padding-top: var(--bar); overflow: hidden; display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--gap); padding-inline: var(--gap); }
.sheet { position: absolute; inset: var(--bar) var(--gap) 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); }
.col { overflow: hidden; height: 100%; }
.track { display: flex; flex-direction: column; gap: var(--gap); will-change: transform; }
.c2 { margin-top: -90px; } .c3 { margin-top: -40px; } .c4 { margin-top: -130px; } .c5 { margin-top: -20px; } .c6 { margin-top: -70px; }
.fr { position: relative; background: var(--night-2); }
.fr-img img { width: 100%; aspect-ratio: 240 / 519; object-fit: cover; }
.strip { height: 30px; display: flex; align-items: center; gap: 6px; padding-inline: 10px; font-size: 13px; line-height: 1; white-space: nowrap; overflow: hidden; }
.strip b { font-weight: 600; }
.s1 { background: var(--violet); color: #fff; } .s2 { background: var(--paper); color: var(--ink); }
.s3 { background: var(--night-3); color: var(--text); } .s4 { background: var(--violet-l); color: var(--ink); }
.sheet .strip { direction: inherit; }
.cell { position: relative; z-index: 2; grid-column: 2 / 6; grid-row: 1; align-self: start; margin-top: max(14svh, 96px); background: var(--paper); color: var(--ink);
  padding: clamp(24px, 2.6vw, 40px); display: grid; gap: 20px; }
.cell-mark { margin: 0; }
.cell h1 { font-size: clamp(3rem, 7vw, 6.75rem); line-height: .98; letter-spacing: -.03em; }
:lang(ar) .cell h1 { line-height: 1.2; letter-spacing: 0; }
.cell .lead { font-size: var(--fs-l); line-height: 1.5; color: var(--ink); max-width: 34em; }
.cell .tlink { color: var(--ink); }
.cell-apps { display: flex; flex-wrap: wrap; gap: 4px 20px; padding-top: 4px; }
.cell-apps a { font-size: var(--fs-b); font-weight: 500; color: var(--ink-soft); text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; }
.cell-apps a:hover { color: var(--violet); text-decoration: underline; }
.pause { position: absolute; z-index: 3; bottom: 16px; inset-inline-end: 16px; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  background: var(--night); color: var(--text); border: 0; font-size: var(--fs-s); cursor: pointer; }
.pause:hover { background: var(--night-3); }
.pz-i { width: 10px; height: 12px; border-inline: 3px solid currentColor; }
.pause[aria-pressed=true] .pz-i { border: 0; width: 0; height: 0; border-block: 6px solid transparent; border-left: 10px solid currentColor; }
html:not(.motion) .pause { display: none; }

@media (max-width: 759px) {
  .hero { display: flex; flex-direction: column; padding: calc(var(--bar) + 12px) var(--gap) 0; min-height: 0; }
  .cell { order: -1; }
  .cell { margin: 0 0 var(--gap); }
  .cell h1 { font-size: 2.125rem; }
  .cell .lead { font-size: 1.0625rem; }
  .cell .btn { width: 100%; justify-content: space-between; }
  .sheet { position: relative; inset: auto; height: 78svh; grid-template-columns: 1fr 1fr; gap: 8px; }
  .c3, .c4, .c5, .c6 { display: none; }
  .c2 { margin-top: -60px; }
  .pause { bottom: 12px; }
}

/* ───────── apps: one tab per app ───────── */
.apps { padding: clamp(80px, 9vw, 152px) var(--m) clamp(32px, 4vw, 64px); }
.apps-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px var(--gap); align-items: end; margin-bottom: 56px; }
.apps-head h2 { grid-column: 1 / 8; font-size: var(--fs-xl); }
.apps-head .lead { grid-column: 8 / 13; font-size: var(--fs-l); line-height: 1.55; }
.tablist { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-bottom: 48px; }
html:not(.js) .tablist { display: none; }
.tab { position: relative; display: grid; gap: 2px; text-align: start; padding: 16px 18px 20px; background: var(--night-2); border: 0; cursor: pointer;
  transition: background var(--t1) var(--ease); }
.tab:hover { background: var(--night-3); }
.tab .tn { font-size: var(--fs-l); font-weight: 600; line-height: 1.3; }
.tab .tk { font-size: var(--fs-s); color: var(--soft); }
.tab[aria-selected=true] { background: var(--paper); color: var(--ink); }
.tab[aria-selected=true] .tk { color: var(--ink-soft); }
/* the apps' real home-screen icons (tools/app_icons.py): iOS corner, a faint inset edge so dark icons hold on dark ground; never mirrored */
.aicon { display: block; border-radius: 22.37%; outline: 1px solid oklch(1 0 0 / .1); outline-offset: -1px; }
.tab { grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; align-items: center; }
.tab .ti { grid-row: span 2; width: 32px; height: 32px; }
.tab[aria-selected=true] .ti { outline-color: oklch(0 0 0 / .1); }
.p-icon .aicon { width: 64px; height: 64px; }
@media (max-width: 599px) {
  .tab { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
  .tab .ti { grid-row: auto; width: 28px; height: 28px; margin-bottom: 8px; }
  .p-icon .aicon { width: 56px; height: 56px; }
}
.tab-ink { position: absolute; bottom: 0; left: 0; height: 4px; width: var(--w, 0); background: var(--violet); transform: translateX(var(--x, 0));
  transition: transform var(--t2) var(--ease), width var(--t2) var(--ease); pointer-events: none; }
@media (max-width: 899px) {
  .tablist { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tab { grid-column: span 2; }
  .tab:nth-child(4), .tab:nth-child(5) { grid-column: span 3; }
  .tab-ink { display: none; }
  .tab[aria-selected=true]::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: var(--violet); }
}
.panel { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--gap); }
html:not(.js) .panel + .panel { margin-top: 120px; }
.panel[hidden], html.js .panels:not(.ready) .panel + .panel { display: none; }
.p-text { grid-column: 1 / 6; display: grid; gap: 20px; align-content: start; }
.p-stage { grid-column: 6 / 13; }
.p-name { font-size: var(--fs-d); line-height: .92; letter-spacing: -.04em; }
:lang(ar) .p-name { line-height: 1.5; letter-spacing: 0; }
.p-q { font-size: var(--fs-m); font-weight: 600; line-height: 1.25; }
.p-v { font-size: var(--fs-l); line-height: 1.55; max-width: 32em; }
.facts { display: grid; gap: 12px; }
.facts li { position: relative; padding-inline-start: 22px; }
.facts li::before { content: ''; position: absolute; inset-inline-start: 0; top: .55em; width: 10px; height: 10px; background: var(--app, var(--violet)); }
.p-st { display: flex; align-items: center; gap: 10px; color: var(--soft); }
.dot { width: 10px; height: 10px; background: var(--app, var(--violet)); border-radius: 50%; }
.p-docs { font-size: var(--fs-s); color: var(--soft); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.p-docs a { color: var(--text); min-height: 24px; }
.p-shots { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(3, minmax(0, 200px)); gap: var(--gap); justify-content: end; }
.p-shots img { width: 100%; aspect-ratio: 240 / 519; object-fit: cover; }
.pa-kulfa, .st-kulfa { --app: var(--green); } .pa-ratbi, .st-ratbi { --app: var(--green); } .pa-khushoo, .st-khushoo { --app: var(--gold); }
.pa-nowly, .st-nowly { --app: var(--violet); } .pa-flint, .st-flint { --app: var(--cobalt); }
@media (max-width: 899px) {
  .apps-head h2, .apps-head .lead { grid-column: 1 / -1; }
  .p-text, .p-stage, .p-shots { grid-column: 1 / -1; }
  .p-shots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ───────── stages (shared) ───────── */
.stage { background: var(--night-2); padding: clamp(20px, 2.4vw, 36px); display: grid; grid-template-columns: minmax(0, 1fr) clamp(150px, 15vw, 220px); gap: clamp(20px, 2.4vw, 36px); align-items: start; height: 100%; }
.st-body { display: grid; gap: 22px; align-content: start; min-width: 0; }
.st-phone img { width: 100%; aspect-ratio: 240 / 519; object-fit: cover; }
.k-cur { font-size: var(--fs-l); font-weight: 600; margin-inline-start: 6px; }
.r-s, .k-pl, .r-l { display: block; font-size: var(--fs-s); color: var(--soft); margin-top: 8px; }
.r-l { margin: 0 0 8px; font-size: var(--fs-b); color: var(--text); }
@media (max-width: 599px) {
  .stage { grid-template-columns: minmax(0, 1fr); }
  .st-phone { width: 62%; justify-self: center; }
}

/* Kulfa: the price splits */
.k-item { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: var(--fs-l); }
.k-item > span { color: var(--soft); font-size: var(--fs-b); }
.kbar { display: flex; gap: 3px; height: 56px; }
.seg { flex: 0 0 var(--w, 0%); min-width: 0; transform-origin: left center; transition: flex-basis var(--t2) var(--ease); }
.sg-vat { --w: 9.11%; background: #5B6090; } .sg-mat { --w: 23.33%; background: var(--lilac); } .sg-cup { --w: 4.44%; background: var(--violet-l); }
.sg-fixed { --w: 19.44%; background: #3F4378; } .sg-comm { --w: 0%; background: var(--amber); } .sg-profit { --w: 43.67%; background: var(--green); }
.krows { display: grid; gap: 8px; }
.kr { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 12px; }
.kr i { width: 12px; height: 12px; }
.kr-vat i { background: #5B6090; } .kr-mat i { background: var(--lilac); } .kr-cup i { background: var(--violet-l); } .kr-fixed i { background: #3F4378; } .kr-comm i { background: var(--amber); }
.kr b { font-weight: 600; }
.k-profit .big { color: var(--green); }

/* Ratbi: one number each morning, and when the loan ends */
.r-gauge { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 20px; align-items: end; }
.r-gauge svg { width: 100%; height: auto; }
.g-bg, .g-fg { fill: none; stroke-width: 14; }
.g-bg { stroke: var(--night-3); }
.g-fg { stroke: var(--green); stroke-dasharray: 100; stroke-dashoffset: 57.5; }
.r-gauge .big { color: var(--green); }
.r-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 3px; }
.r-out li { background: var(--night-3); padding: 10px 12px; display: grid; gap: 2px; font-size: var(--fs-s); }
.r-out li span { color: var(--soft); }
.r-out b { font-size: var(--fs-b); }
.r-out .r-sal { background: var(--paper); color: var(--ink); }
.r-out .r-sal span { color: var(--ink-soft); }
.r-loan { display: grid; gap: 14px; }
.r-lh { font-weight: 600; }
.r-track { height: 12px; background: var(--night-3); }
.r-fill { display: block; height: 100%; background: var(--green); transform-origin: left center; transition: transform var(--t2) var(--ease); }
.r-res { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: baseline; }
.r-res b { font-size: var(--fs-m); }
.r-res span { color: var(--soft); }

/* Khushoo: the qibla */
/* Khushoo wears its own navy and champagne gold (owner, 18 Nov 2026), not the studio violet */
.st-khushoo .q-ring { fill: var(--night); }
.pa-khushoo .btn, .app-khushoo .btn { background: var(--gold); color: var(--kh-ground); }
.pa-khushoo .btn:hover, .app-khushoo .btn:hover { background: #CFAE86; }
.st-khushoo .chip[aria-pressed=true] { background: var(--gold); color: var(--kh-ground); }
.st-khushoo .st-body { grid-template-columns: minmax(160px, 260px) 1fr; align-items: center; }
.st-khushoo .chips { grid-column: 1 / -1; }
.q-dial svg { width: 100%; height: auto; overflow: visible; }
.q-ring { fill: var(--night-3); stroke: none; }
.tk { stroke: var(--soft); stroke-width: 1.5; } .tk5 { stroke: var(--text); stroke-width: 2.5; }
.q-north { fill: var(--gold); }
.q-arm { stroke: var(--gold); stroke-width: 4; }
.q-kaaba { fill: #0A0A0A; stroke: var(--gold); stroke-width: 1.5; }
.q-band { fill: var(--gold); }
.q-hub { fill: var(--gold); }
.q-read { display: grid; gap: 18px; }
.q-read dt { font-size: var(--fs-s); color: var(--soft); }
.q-read dd { margin: 4px 0 0; font-size: var(--fs-l); }
.q-read .big { color: var(--gold); }
.q-read small { display: block; margin-top: 6px; font-size: var(--fs-s); color: var(--soft); }
@media (max-width: 599px) { .st-khushoo .st-body { grid-template-columns: 1fr; } .q-dial { width: 72%; justify-self: center; } }

/* Nowly: life, right now, on the map */
.n-map { position: relative; overflow: hidden; }
.n-map .ph img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.n-map::after { content: ''; position: absolute; inset: 0; background: rgb(12 14 34 / .42); }
.n-pins { position: absolute; inset: 0; z-index: 1; }
.pin { position: absolute; display: grid; justify-items: center; gap: 4px; transform: translate(-50%, -50%); }
.pin svg { width: 44px; height: 44px; }
.pin-t { fill: none; stroke: #fff; stroke-width: 3; stroke-dasharray: 100; stroke-dashoffset: 30; transform: rotate(-90deg); transform-origin: center; }
.pin-d { fill: var(--lilac); }
.pin span { background: var(--night); color: var(--text); font-size: 13px; padding: 2px 8px; white-space: nowrap; }
.n-live, .n-gone { position: absolute; z-index: 2; margin: 0; background: var(--night); padding: 6px 12px; font-size: var(--fs-s); }
.n-live { top: 14px; left: 14px; display: flex; align-items: center; gap: 8px; }
.n-gone { bottom: 14px; right: 14px; background: var(--violet); color: #fff; }
.n-dot { width: 9px; height: 9px; border-radius: 50%; background: #3BE07A; }

/* Flint: one photo, the whole plate */
.st-flint .st-body { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
.f-plate { position: relative; overflow: hidden; }
.f-plate .ph img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.fbox { position: absolute; border: 2px solid #fff; }
.fbox span { position: absolute; left: -2px; bottom: 100%; background: var(--cobalt); color: #fff; font-size: 13px; line-height: 1.2; padding: 3px 7px; white-space: nowrap; }
.fb4 span { bottom: auto; top: 100%; }
.f-scan { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #fff; opacity: 0; }
.f-total .big { color: #8DB0FF; }
.f-parts { display: grid; gap: 8px; }
.f-parts li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; }
.f-parts li + li { padding-top: 0; }
.f-parts small { color: var(--soft); font-size: var(--fs-s); }
.f-side { display: grid; gap: 18px; }
@media (max-width: 599px) { .st-flint .st-body { grid-template-columns: 1fr; } }

/* ───────── about: the studio as an instrument wall (18 Nov 2026) ─────────
   One studio ground, no colour fills: every panel is the studio night, cut at its top corner like the J
   (a ground-coloured notch with the violet tip in it, as in the mark). Each app speaks only through the
   line colour of its instrument. The cut J is drawn from its construction lines in the first panel. */
.about { padding: clamp(56px, 6vw, 96px) var(--gap) 0; }
.board { --cut: clamp(14px, 1.4vw, 22px); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.bd { position: relative; aspect-ratio: 1; min-width: 0; padding: clamp(14px, 1.6vw, 24px); display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  background: var(--night-2); color: var(--text); font-size: var(--fs-b); line-height: 1.45; font-weight: 500; overflow: hidden; text-decoration: none;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06); }
.bd::before { content: ''; position: absolute; top: 0; right: 0; width: var(--cut); height: var(--cut); background: var(--night); clip-path: polygon(0 0, 100% 0, 100% 100%); z-index: 1; }
.bd::after { content: ''; position: absolute; top: 0; right: 0; width: calc(var(--cut) * .48); height: calc(var(--cut) * .48); background: var(--violet);
  clip-path: polygon(0 0, 100% 0, 100% 100%); z-index: 2; opacity: 0; transition: opacity var(--t1) var(--ease); }
.bd-h, .bd-cta { }
.bd-h::after, .bd-cta::after, .bd-app:hover::after, .bd-app:focus-visible::after { opacity: 1; }
.bd-h { grid-column: span 2; grid-row: span 2; justify-content: space-between; }
.bd-h h2 { font-size: var(--fs-xl); position: relative; z-index: 3; }
.jdraw { width: 74%; max-height: 72%; align-self: center; overflow: visible; }
.jg { fill: none; stroke: rgb(255 255 255 / .16); stroke-width: .35; stroke-dasharray: 1; }
.jn { fill: var(--night-2); stroke: var(--violet-t); stroke-width: .5; }
.jb { fill: none; stroke: #fff; stroke-width: 23; stroke-linejoin: miter; stroke-miterlimit: 8; stroke-dasharray: 1; }
.jt { fill: var(--violet); }
.bd-f { justify-content: space-between; }
.bd-n { font-size: var(--fs-xl); font-weight: 600; line-height: 1; letter-spacing: -.02em; color: #fff; align-self: flex-start; }
.bd-at { color: var(--violet-t); font-weight: 400; }
.bd-f span { font-size: var(--fs-b); }
.bd-app { color: var(--text); transition: background var(--t1) var(--ease); }
.bd-app:hover { background: var(--night-3); }
.bd-t { display: grid; gap: 2px; }
.bd-app b { font-size: var(--fs-m); font-weight: 700; line-height: 1.2; color: #fff; }
:lang(ar) .bd-app b { line-height: 1.45; }
.bd-app small { font-size: var(--fs-s); color: var(--soft); font-weight: 500; }
.ins { width: 100%; height: auto; overflow: visible; direction: ltr; }
.bd-kulfa, .bd-ratbi { --ln: var(--green); } .bd-khushoo { --ln: var(--gold); } .bd-flint { --ln: #5C8BFF; } .bd-nowly { --ln: var(--lilac); }
.ins .seg { fill: rgb(255 255 255 / .22); transform-box: fill-box; transform-origin: 0 50%; }
.ins .sg1 { fill: rgb(255 255 255 / .34); } .ins .sg3 { fill: rgb(255 255 255 / .14); }
.ins .seg-p { fill: var(--ln); }
.ins .ln { fill: none; stroke: var(--ln); stroke-width: 1.6; stroke-dasharray: 1; stroke-linejoin: miter; }
.ins .ln-p { stroke-width: 1; }
.ins .base { stroke: rgb(255 255 255 / .16); stroke-width: .8; }
.ins .pt { fill: var(--ln); }
.ins .dial { fill: none; stroke: rgb(255 255 255 / .2); stroke-width: 1; }
.ins .tk { stroke: rgb(255 255 255 / .45); stroke-width: 1; }
.ins .needle { stroke: var(--ln); stroke-width: 1.8; fill: var(--ln); transform-box: view-box; transform-origin: 60px 32px; }
.ins .needle .nl { fill: none; }
.ins .hub { fill: #fff; }
.ins .deg { fill: var(--ln); font: 600 11px 'Readex', system-ui, sans-serif; }
.ins .trk { fill: none; stroke: rgb(255 255 255 / .12); stroke-width: 6; }
.ins .ring { fill: none; stroke: var(--ln); stroke-width: 6; stroke-dasharray: 1; stroke-dashoffset: .26; }
.ins .mac { fill: rgb(255 255 255 / .3); transform-box: fill-box; transform-origin: 50% 100%; }
.ins .m0 { fill: var(--ln); }
.ins .rip { fill: none; stroke: var(--ln); stroke-width: 1; transform-box: view-box; transform-origin: 60px 32px; }
.ins .r0 { opacity: .9; } .ins .r1 { opacity: .5; } .ins .r2 { opacity: .25; }
.ins .core { fill: var(--violet); stroke: var(--ln); stroke-width: 1; }
.ins .pp { fill: #fff; transform-box: fill-box; transform-origin: 50% 50%; }
.bd-cta { grid-column: 1 / -1; aspect-ratio: auto; min-height: clamp(96px, 9vw, 140px); flex-direction: row; align-items: center; justify-content: flex-start; gap: 24px;
  background: var(--violet); color: #fff; font-size: var(--fs-m); font-weight: 600; box-shadow: none; transition: background var(--t1) var(--ease); }
.bd-cta::after { background: #fff; }
.bd-cta:hover { background: #5719E0; }
.bd-mail { font-size: var(--fs-l); font-weight: 500; opacity: .85; margin-inline-start: auto; }
.bd-ar { display: flex; flex: none; transition: translate var(--t1) var(--ease); }
.bd-cta .arr { width: 32px; height: 32px; }
.bd-cta:hover .bd-ar { translate: 6px 0; }
[dir=rtl] .bd-cta:hover .bd-ar { translate: -6px 0; }
@media (max-width: 759px) {
  .board { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .bd { padding: 11px; font-size: .8125rem; line-height: 1.4; gap: 6px; }
  .bd-h { grid-column: 1 / -1; grid-row: auto; aspect-ratio: auto; min-height: 300px; }
  .bd-h h2 { font-size: 2.125rem; }
  .jdraw { width: 54%; }
  .ins { width: 66%; align-self: flex-start; }
  .bd-app { gap: 2px; }
  .bd-app .bd-t { gap: 0; }
  .bd-app small { font-size: .75rem; line-height: 1.35; }
  .bd-n { font-size: 2rem; }
  .bd-f span { font-size: .8125rem; }
  .bd-app b { font-size: 1.1875rem; }
  .bd-app small { font-size: .8125rem; }
  .bd-cta { grid-column: span 1; aspect-ratio: 1; min-height: 0; flex-direction: column; align-items: flex-start; justify-content: space-between; font-size: 1.0625rem; gap: 6px; }
  .bd-mail { display: none; }
  .bd-cta .arr { width: 24px; height: 24px; }
}
.principles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px var(--gap); padding: clamp(56px, 6vw, 88px) calc(var(--m) - var(--gap)) 0; }
.principles h3 { grid-column: 1 / 5; font-size: var(--fs-m); }
.principles ul { grid-column: 5 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 36px 40px; }
.principles h4 { font-size: var(--fs-l); margin-bottom: 8px; }
@media (max-width: 759px) {
  .principles h3, .principles ul { grid-column: 1 / -1; }
  .principles ul { grid-template-columns: 1fr; }
}

/* ───────── FAQ: question index, one answer ───────── */
.faq { padding: clamp(72px, 8vw, 128px) var(--m) 0; }
.faq > h2 { font-size: var(--fs-xl); margin-bottom: 48px; }
.fq-list { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 1fr) minmax(0, 6fr); align-items: start; }
.fq { display: contents; }
.fq h3 { grid-column: 1; font-size: var(--fs-l); font-weight: 400; margin-bottom: 6px; }
.fq h3 button { display: flex; gap: 16px; align-items: baseline; width: 100%; text-align: start; padding: 10px 0; background: none; border: 0; color: var(--soft); cursor: pointer; line-height: 1.4;
  transition: color var(--t1) var(--ease); }
.fq h3 button i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--night-3); transform: translateY(-2px); transition: background var(--t1) var(--ease); }
.fq h3 button:hover, .fq.on h3 button { color: var(--text); }
.fq.on h3 button i { background: var(--violet-t); }
.fa { grid-column: 3; grid-row: 1 / span 12; position: sticky; top: calc(var(--bar) + 48px); font-size: var(--fs-m); line-height: 1.35; max-width: 18em; }
.fa a { color: var(--violet-t); }
html.js .fq:not(.on) .fa { display: none; }
html.motion .fq.on .fa { animation: fadein 220ms var(--ease); }
@keyframes fadein { from { opacity: 0; } }
html:not(.js) .fq-list { display: block; }
html:not(.js) .fa { position: static; font-size: var(--fs-l); margin-bottom: 24px; max-width: 40em; }
@media (max-width: 759px) {
  .fq-list { display: block; }
  .fa { position: static; font-size: 1.0625rem; padding: 0 25px 18px; }
  [dir=rtl] .fa { padding: 0 25px 18px 0; }
}

/* ───────── contact: one closing row ───────── */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px var(--gap); padding: clamp(72px, 8vw, 128px) var(--m) clamp(72px, 8vw, 112px); align-items: end; }
.c-line { grid-column: 1 / 7; font-size: var(--fs-m); line-height: 1.3; font-weight: 600; }
.c-links { grid-column: 8 / 13; display: grid; gap: 12px; }
.c-q { font-size: var(--fs-l); font-weight: 600; }
.c-links a { font-size: var(--fs-m); font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.c-where { font-size: var(--fs-s); color: var(--soft); }
@media (max-width: 899px) {
  .c-line { grid-column: 1 / -1; font-size: 1.375rem; }
  .c-links { grid-column: 1 / -1; }
}

/* ───────── footer ───────── */
.foot { padding: 64px var(--m) 32px; background: var(--night-2); }
.foot-h { font-size: var(--fs-b); font-weight: 600; margin-bottom: 20px; letter-spacing: 0; }
.foot-docs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px var(--gap); margin-bottom: 72px; }
.foot-docs li { display: grid; gap: 6px; }
.foot-docs span { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--fs-s); }
.foot-docs a { color: var(--soft); min-height: 24px; display: inline-flex; align-items: center; }
.foot-docs a:hover { color: var(--text); }
.foot-line { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px 24px; font-size: var(--fs-s); color: var(--soft); align-items: baseline; }
.foot-line a { color: var(--text); }
.foot-end { justify-self: end; }
.foot-credit { margin-top: 16px; font-size: 13px; color: var(--soft); }
@media (max-width: 759px) {
  .foot-docs { grid-template-columns: 1fr 1fr; }
  .foot-line { grid-template-columns: 1fr; }
  .foot-end { justify-self: start; }
}

/* ───────── app pages ───────── */
.app-hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--gap); padding: calc(var(--bar) + clamp(48px, 7vw, 112px)) var(--m) 0; }
.app-shots { padding: clamp(96px, 10vw, 160px) var(--m) 0; }
.app-shots h2, .feats h2, .app-docs h2 { font-size: var(--fs-xl); margin-bottom: 40px; }
.app-shots ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.app-shots li { display: grid; gap: 10px; font-size: var(--fs-s); color: var(--soft); }
.app-shots img { width: 100%; aspect-ratio: 240 / 519; object-fit: cover; }
.feats { padding: clamp(96px, 10vw, 160px) var(--m) 0; }
.feats ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 40px; }
.feats h3 { font-size: var(--fs-l); margin-bottom: 10px; }
.app-docs { padding: clamp(96px, 10vw, 160px) var(--m) clamp(96px, 10vw, 140px); }
.app-docs ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.app-docs a { display: flex; justify-content: space-between; align-items: center; min-height: 88px; padding: 20px 24px; background: var(--night-2); font-size: var(--fs-l); font-weight: 600; text-decoration: none; transition: background var(--t1) var(--ease); }
.app-docs a:hover { background: var(--night-3); }
@media (max-width: 899px) {
  .app-shots ul { grid-template-columns: 1fr 1fr; }
  .feats ul, .app-docs ul { grid-template-columns: 1fr; }
}

/* ───────── documents ───────── */
.docp main { background: var(--paper); color: var(--ink); }
.doc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px var(--gap); padding: calc(var(--bar) + clamp(40px, 6vw, 96px)) var(--m) clamp(80px, 10vw, 140px); }
.doc-head { grid-column: 1 / -1; display: grid; gap: 12px; }
.doc-head h1 { font-size: var(--fs-xl); }
.doc-app a { font-weight: 600; color: var(--violet); }
.doc-upd { color: var(--ink-soft); }
.doc-nav { grid-column: 1 / 4; }
.doc-nav ul { position: sticky; top: calc(var(--bar) + 24px); display: grid; gap: 4px; }
.doc-nav a { display: block; padding: 10px 14px; text-decoration: none; background: var(--paper-2); }
.doc-nav a:hover { background: #DDE0EE; }
.doc-nav a[aria-current=page] { background: var(--ink); color: #fff; }
.doc-body { grid-column: 4 / 11; max-width: 44em; color: var(--ink); }
.doc-body h2 { font-size: var(--fs-m); margin: 48px 0 14px; }
.doc-body h3 { font-size: var(--fs-l); margin: 28px 0 10px; }
.doc-body p, .doc-body ul, .doc-body ol, .doc-body table { margin-bottom: 14px; }
.doc-body ul { list-style: disc; padding-inline-start: 1.4em; }
.doc-body li { margin-bottom: 6px; }
.doc-body .lead { font-size: var(--fs-l); }
.doc-body a { color: var(--violet); }
.doc-body table { width: 100%; border-collapse: collapse; font-size: var(--fs-s); }
.doc-body th, .doc-body td { text-align: start; padding: 10px; vertical-align: top; border-bottom: 1px solid var(--paper-2); }
.doc-body th { background: var(--paper-2); }
@media (max-width: 899px) { .doc-nav, .doc-body { grid-column: 1 / -1; } .doc-nav ul { position: static; display: flex; flex-wrap: wrap; } .doc-body table { display: block; overflow-x: auto; } }

/* 404 */
.nf { min-height: 80svh; display: grid; align-content: center; gap: 24px; padding: calc(var(--bar) + 48px) var(--m) 80px; }
.nf h1 { font-size: var(--fs-xl); }
.nf-en { color: var(--soft); }

/* ═════════ motion (only with html.motion: boot.js sets it when Reduce Motion is off) ═════════ */
html.motion [data-rv] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: var(--d, 0ms); }
html.motion [data-rv].in { opacity: 1; transform: none; }

/* hero: the cell opens like a shutter, the columns follow, then the sheet drifts */
html.motion .cell { animation: shutter 1.1s var(--ease) both; }
html.motion .cell > * { animation: rise 800ms var(--ease) both; }
html.motion .cell > :nth-child(2) { animation-delay: 240ms; } html.motion .cell > :nth-child(3) { animation-delay: 320ms; }
html.motion .cell > :nth-child(4) { animation-delay: 400ms; } html.motion .cell > :nth-child(5) { animation-delay: 480ms; }
html.motion .col { animation: shutter-down 1.1s var(--ease) both; }
html.motion .c2 { animation-delay: 80ms; } html.motion .c3 { animation-delay: 160ms; } html.motion .c4 { animation-delay: 240ms; }
html.motion .c5 { animation-delay: 320ms; } html.motion .c6 { animation-delay: 400ms; }
html.motion .fr-img img { animation: settle 1.4s var(--ease) both; }
html.motion .track { animation: drift 120s linear 1.2s infinite; }
html.motion .c2 .track, html.motion .c4 .track, html.motion .c6 .track { animation-direction: reverse; }
html.motion .c3 .track { animation-duration: 150s; } html.motion .c5 .track { animation-duration: 100s; }
html.paused .track, html.offscreen .track { animation-play-state: paused; }
@keyframes shutter { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes shutter-down { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes settle { from { transform: scale(1.12); } }
@keyframes drift { to { transform: translateY(calc(-50% - 6px)); } }

/* about wall: panels rise one after another, then each instrument plays once (no loops).
   The board is the observed element. The J: construction lines draw, the band traces the J, the violet corner lands. */
html.motion .board[data-rv] { opacity: 1; transform: none; }
html.motion .board > * { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease) var(--bd, 0ms), transform 700ms var(--ease) var(--bd, 0ms), background var(--t1) var(--ease); }
html.motion .board.in > * { opacity: 1; transform: none; }
html.motion .board > :nth-child(2) { --bd: 90ms; }  html.motion .board > :nth-child(3) { --bd: 150ms; }
html.motion .board > :nth-child(4) { --bd: 210ms; } html.motion .board > :nth-child(5) { --bd: 270ms; }
html.motion .board > :nth-child(6) { --bd: 330ms; } html.motion .board > :nth-child(7) { --bd: 390ms; }
html.motion .board > :nth-child(8) { --bd: 450ms; } html.motion .board > :nth-child(9) { --bd: 510ms; }
html.motion .board > :nth-child(10) { --bd: 570ms; }
html.motion .jg { stroke-dashoffset: 1; transition: stroke-dashoffset 1100ms cubic-bezier(.65,0,.35,1); }
html.motion .jg:nth-child(2n) { transition-delay: 80ms; } html.motion .jg:nth-child(3n) { transition-delay: 160ms; }
html.motion .jn { opacity: 0; transition: opacity 400ms var(--ease) 900ms; }
html.motion .jb { stroke-dashoffset: 1; transition: stroke-dashoffset 1300ms cubic-bezier(.65,0,.35,1) 750ms; }
html.motion .jt { opacity: 0; transform: translate(9px, -9px) scale(.2); transform-box: fill-box; transform-origin: 100% 0;
  transition: opacity 300ms var(--ease) 1950ms, transform 650ms var(--spring) 1950ms; }
html.motion .board.in .jg, html.motion .board.in .jb { stroke-dashoffset: 0; }
html.motion .board.in .jg { stroke-dashoffset: 0; }
html.motion .board.in .jn, html.motion .board.in .jt { opacity: 1; }
html.motion .board.in .jt { transform: none; }
html.motion .board .jgs { transition: opacity 900ms var(--ease) 2100ms; }
html.motion .board.in .jgs { opacity: .55; }
/* instruments start after their panel has risen */
html.motion .ins * { --at: calc(var(--bd, 0ms) + 420ms); }
html.motion .ins .seg { transform: scaleX(0); transition: transform 700ms var(--ease) calc(var(--at) + var(--k, 0ms)); }
html.motion .ins .sg1 { --k: 70ms; } html.motion .ins .sg2 { --k: 140ms; } html.motion .ins .sg3 { --k: 210ms; } html.motion .ins .sg4 { --k: 280ms; } html.motion .ins .sg5 { --k: 380ms; }
html.motion .ins .ln { stroke-dashoffset: 1; transition: stroke-dashoffset 1200ms cubic-bezier(.65,0,.35,1) var(--at); }
html.motion .ins .ln-p { transition-delay: calc(var(--at) + 700ms); transition-duration: 500ms; }
html.motion .ins .pt { opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; transform: scale(0); transition: opacity 200ms var(--ease) calc(var(--at) + 1150ms), transform 500ms var(--spring) calc(var(--at) + 1150ms); }
html.motion .ins .needle { rotate: -140deg; transition: rotate 1400ms cubic-bezier(.3,1.35,.45,1) var(--at); }
html.motion .ins .deg { opacity: 0; transition: opacity 400ms var(--ease) calc(var(--at) + 1100ms); }
html.motion .ins .ring { stroke-dashoffset: 1; transition: stroke-dashoffset 1300ms cubic-bezier(.3,1.1,.45,1) var(--at); }
html.motion .ins .mac { transform: scaleY(0); transition: transform 600ms var(--spring) calc(var(--at) + 500ms + var(--k, 0ms)); }
html.motion .ins .m1 { --k: 90ms; } html.motion .ins .m2 { --k: 180ms; }
html.motion .ins .rip { transform: scale(.15); opacity: 0; transition: transform 1100ms var(--ease) calc(var(--at) + var(--k, 0ms)), opacity 900ms var(--ease) calc(var(--at) + var(--k, 0ms)); }
html.motion .ins .r1 { --k: 160ms; } html.motion .ins .r2 { --k: 320ms; }
html.motion .ins .pp { transform: scale(0); transition: transform 450ms var(--spring) calc(var(--at) + 700ms + var(--k, 0ms)); }
html.motion .ins .p1 { --k: 80ms; } html.motion .ins .p2 { --k: 160ms; } html.motion .ins .p3 { --k: 240ms; } html.motion .ins .p4 { --k: 320ms; } html.motion .ins .p5 { --k: 400ms; }
html.motion .board.in .ins .seg, html.motion .board.in .ins .mac, html.motion .board.in .ins .pp { transform: none; }
html.motion .board.in .ins .ln, html.motion .board.in .ins .ring { stroke-dashoffset: 0; }
html.motion .board.in .ins .ring { stroke-dashoffset: .26; }
html.motion .board.in .ins .pt { opacity: 1; transform: none; }
html.motion .board.in .ins .needle { rotate: 0deg; }
html.motion .board.in .ins .deg { opacity: 1; }
html.motion .board.in .ins .rip { transform: none; }
html.motion .board.in .ins .r0 { opacity: .9; } html.motion .board.in .ins .r1 { opacity: .5; } html.motion .board.in .ins .r2 { opacity: .25; }

/* panels: each part rises in turn when the tab opens */
html.motion .panel .p-text > *, html.motion .panel .p-stage, html.motion .panel .p-shots li { transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
html.motion .panel:not(.play) .p-text > *, html.motion .panel:not(.play) .p-stage, html.motion .panel:not(.play) .p-shots li { opacity: 0; transform: translateY(20px); }
html.motion .panel.play .p-text > :nth-child(2) { transition-delay: 70ms; } html.motion .panel.play .p-text > :nth-child(3) { transition-delay: 140ms; }
html.motion .panel.play .p-text > :nth-child(4) { transition-delay: 210ms; } html.motion .panel.play .p-text > :nth-child(n+5) { transition-delay: 280ms; }
html.motion .panel.play .p-stage { transition-delay: 120ms; }
html.motion .panel.play .p-shots li:nth-child(1) { transition-delay: 300ms; } html.motion .panel.play .p-shots li:nth-child(2) { transition-delay: 370ms; } html.motion .panel.play .p-shots li:nth-child(3) { transition-delay: 440ms; }
html.motion .panel [data-rv] { opacity: 1; transform: none; transition-delay: 0ms; }

/* Kulfa: segments grow in from the price's start */
html.motion .stage:not(.go) .seg { transform: scaleX(0); }
html.motion .stage.go .seg { transform: none; transition: transform 700ms var(--ease), flex-basis var(--t2) var(--ease); }
html.motion .stage.go .sg-mat { transition-delay: 90ms; } html.motion .stage.go .sg-cup { transition-delay: 180ms; } html.motion .stage.go .sg-fixed { transition-delay: 270ms; }
html.motion .stage.go .sg-comm { transition-delay: 0ms; } html.motion .stage.go .sg-profit { transition-delay: 380ms; }
/* Ratbi: the gauge fills */
html.motion .stage:not(.go) .g-fg { stroke-dashoffset: 100; }
html.motion .g-fg { transition: stroke-dashoffset 1.2s var(--ease) 200ms; }
html.motion .stage:not(.go) .r-fill { transform: scaleX(0); }
/* Khushoo: the needle swings from north (CSS rotation set by studio.js) */
/* Nowly: pins land one by one, their 4-hour rings run down */
html.motion .stage:not(.go) .pin { opacity: 0; transform: translate(-50%, -30%) scale(.6); }
html.motion .pin { transition: opacity 500ms var(--ease), transform 600ms var(--spring); }
html.motion .stage.go .pn2 { transition-delay: 220ms; } html.motion .stage.go .pn3 { transition-delay: 440ms; } html.motion .stage.go .pn4 { transition-delay: 660ms; } html.motion .stage.go .pn5 { transition-delay: 880ms; }
html.motion .stage.go .pin-t { animation: tick 14s linear infinite; }
html.motion .stage.go .pn2 .pin-t { animation-delay: -4s; } html.motion .stage.go .pn3 .pin-t { animation-delay: -9s; } html.motion .stage.go .pn4 .pin-t { animation-delay: -2s; } html.motion .stage.go .pn5 .pin-t { animation-delay: -11s; }
@keyframes tick { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 100; } }
html.motion .stage.go .n-dot { animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 50% { opacity: .35; } }
html.motion .n-map .ph img { transition: transform 8s linear; }
html.motion .stage.go .n-map .ph img { transform: scale(1.06); }
/* Flint: the scan line passes, then each box lands */
html.motion .f-plate.shot .f-scan { animation: sweep 1.1s var(--ease) both; }
@keyframes sweep { 0% { opacity: 1; transform: translateY(0); } 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(var(--sweep, 400px)); } }
html.motion .f-plate .fbox { transition: opacity 400ms var(--ease), transform 500ms var(--spring); }
html.motion .f-plate:not(.shot) .fbox, html.motion .f-plate.shot .fbox.wait { opacity: 0; transform: scale(1.15); }
html.motion .f-plate.shot .fb1 { transition-delay: 500ms; } html.motion .f-plate.shot .fb2 { transition-delay: 700ms; }
html.motion .f-plate.shot .fb3 { transition-delay: 900ms; } html.motion .f-plate.shot .fb4 { transition-delay: 1100ms; }

/* screenshot tools add .snap: everything at rest, in its final state */
html.snap * { animation-duration: 0s !important; animation-delay: 0s !important; transition-duration: 0s !important; transition-delay: 0s !important; }
html.snap .track { animation: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ───────── the studio's signature across the page (18 Nov 2026) ─────────
   The mark is a J cut at 45° with a violet corner. That corner travels with the studio: it ends the
   section titles, it cuts the hero sheet, every panel of the about wall, and the footer signs the
   page with the full mark at size. Graphics never mirror: the corner sits top-right in both languages. */
.apps-head h2::after, .faq > h2::after, .principles h3::after, .bd-h h2::after {
  content: ''; display: inline-block; width: .3em; height: .3em; margin-inline-start: .14em; vertical-align: .62em;
  background: var(--violet); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.cell::before, .cell::after { content: ''; position: absolute; top: 0; right: 0; clip-path: polygon(0 0, 100% 0, 100% 100%); pointer-events: none; }
.cell::before { width: clamp(26px, 2.6vw, 40px); height: clamp(26px, 2.6vw, 40px); background: var(--night); }
.cell::after { width: clamp(12px, 1.2vw, 18px); height: clamp(12px, 1.2vw, 18px); background: var(--violet); }
.foot-sign { display: flex; align-items: center; gap: clamp(14px, 2vw, 32px); margin: 0 0 clamp(48px, 6vw, 88px); color: #fff; }
.foot-sign .mark { height: clamp(76px, 11vw, 176px); }
.foot-sign .wm { gap: clamp(6px, .8vw, 12px); }
.foot-sign .wm b { font-size: clamp(2.25rem, 7.4vw, 7.25rem); letter-spacing: .1em; line-height: .9; }
.foot-sign .wm i { font-size: clamp(1.25rem, 3.4vw, 3.25rem); opacity: .7; }
html.motion .foot-sign[data-rv] { opacity: 1; transform: none; }
html.motion .foot-sign .mark path:first-of-type { stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 1300ms cubic-bezier(.65,0,.35,1) 150ms; }
html.motion .foot-sign .mark path:last-of-type { opacity: 0; transform: translate(8px, -8px) scale(.2); transform-box: fill-box; transform-origin: 100% 0;
  transition: opacity 300ms var(--ease) 1300ms, transform 650ms var(--spring) 1300ms; }
html.motion .foot-sign .wm { opacity: 0; transform: translateX(-14px); transition: opacity 800ms var(--ease) 500ms, transform 800ms var(--ease) 500ms; }
html.motion .foot-sign.in .mark path:first-of-type { stroke-dashoffset: 0; }
html.motion .foot-sign.in .mark path:last-of-type { opacity: 1; transform: none; }
html.motion .foot-sign.in .wm { opacity: 1; transform: none; }

.fb1 { left: 12.50%; top: 23.00%; width: 52.50%; height: 49.50%; }
.fb2 { left: 22.25%; top: 32.75%; width: 33.75%; height: 26.25%; }
.fb3 { left: 76.50%; top: 17.50%; width: 22.50%; height: 18.00%; }
.fb4 { left: 1.00%; top: 73.00%; width: 31.00%; height: 26.00%; }
.pn1 { left: 22%; top: 30%; }
.pn2 { left: 68%; top: 22%; }
.pn3 { left: 40%; top: 56%; }
.pn4 { left: 78%; top: 64%; }
.pn5 { left: 18%; top: 78%; }
