/* MIDDLEWARE — site.css v2 (10 Sep 2026)
   Obsidian ground, one accent, IBM Plex across three scripts. Self-hosted subset fonts;
   nothing on this page is fetched from another host. Logical properties throughout;
   the hero photograph and its X-ray twin are physical and never mirrored. */

@font-face{font-family:"IBM Plex Sans";font-style:normal;font-weight:100 700;font-display:swap;src:url(fonts/ibm-plex-sans-latin.woff2) format("woff2")}
@font-face{font-family:"IBM Plex Sans Arabic";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/ibm-plex-sans-arabic-400.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+FB50-FDFF,U+FE70-FEFC}
@font-face{font-family:"IBM Plex Sans Arabic";font-style:normal;font-weight:500;font-display:swap;src:url(fonts/ibm-plex-sans-arabic-500.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+FB50-FDFF,U+FE70-FEFC}
@font-face{font-family:"IBM Plex Sans Arabic";font-style:normal;font-weight:600;font-display:swap;src:url(fonts/ibm-plex-sans-arabic-600.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+FB50-FDFF,U+FE70-FEFC}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/ibm-plex-mono-latin-400.woff2) format("woff2")}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:500;font-display:swap;src:url(fonts/ibm-plex-mono-latin-500.woff2) format("woff2")}

:root{
  --bg:#0A0A0D; --bg-2:#0F0F13; --surface:#15151B; --line:#24242C; --hair:#1A1A20;
  --text:#F4F4F7; --muted:#9A9AA8; --dim:#8A8A9E;
  --accent:#5AB0FF; --accent-2:#9AD4FF; --glow:rgba(90,176,255,.38); --glow-soft:rgba(90,176,255,.14);
  --sans:"IBM Plex Sans","Helvetica Neue",Arial,sans-serif;
  --arabic:"IBM Plex Sans Arabic","IBM Plex Sans","Segoe UI",sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  color-scheme:dark;
}

/* ---------- base ---------- */
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;background:var(--bg)}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--sans);font-size:17px;line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:hidden}
html[lang="ar"] body{font-family:var(--arabic);line-height:1.85}
h1,h2,h3,h4{margin:0;font-family:var(--sans);font-weight:600;letter-spacing:-.02em;text-wrap:balance}
html[lang="ar"] :is(h1,h2,h3,h4){font-family:var(--arabic);letter-spacing:0;line-height:1.55}
p{margin:0}
img{max-width:100%;display:block}
a{color:inherit}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
::selection{background:var(--accent);color:#0A0A0D}
.n,.num,.mono,.eyebrow{font-family:var(--mono);font-variant-numeric:tabular-nums}
html[lang="ar"] .n{font-size:.94em}
.lat{font-family:var(--sans);unicode-bidi:isolate}
[dir="ltr"]{unicode-bidi:isolate}
.wrap{max-width:1200px;margin-inline:auto;padding-inline:clamp(20px,5vw,64px)}

/* ---------- header ---------- */
.hd{position:fixed;inset-inline:0;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:14px clamp(16px,3vw,40px);min-height:60px;transition:background-color .25s,border-color .25s;border-bottom:1px solid transparent}
.hd.past{background:rgba(10,10,13,.72);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom-color:var(--line)}
.hd:not(.past){pointer-events:none}.hd .wm,.hd .hd-end{pointer-events:auto}   /* over the hero the bar is glass: the picture beneath it still drags */
.wm{display:inline-block;line-height:0}
.wm img{height:14px;width:auto}
.hd-end{display:flex;align-items:center;gap:10px}
.btn-hd{visibility:hidden;opacity:0;transition:opacity .25s}
.hd.past .btn-hd{visibility:visible;opacity:1}
.btn-hd .short{display:none}
@media (max-width:520px){.btn-hd .full{display:none}.btn-hd .short{display:inline}}
.lang{font-family:var(--mono);font-size:12px;letter-spacing:.08em;background:rgba(10,10,13,.5);border:1px solid var(--line);color:var(--text);
  padding:8px 11px 7px;border-radius:6px;cursor:pointer;min-width:44px;line-height:1;transition:border-color .2s}
.lang:hover{border-color:var(--accent)}
.lang[lang="ar"]{font-family:var(--arabic);font-size:13px;letter-spacing:0;padding:6px 11px}

/* ---------- the button ---------- */
.btn{display:inline-flex;align-items:center;gap:10px;background:var(--accent);color:#0A0A0D;text-decoration:none;
  font-family:var(--sans);font-weight:600;font-size:15px;line-height:1;padding:15px 22px;border-radius:8px;white-space:nowrap;
  box-shadow:0 0 0 0 var(--glow);transition:box-shadow .25s,transform .2s,background-color .2s}
.btn:hover{background:var(--accent-2);box-shadow:0 0 28px var(--glow);transform:translateY(-1px)}
html[lang="ar"] .btn{font-family:var(--arabic);font-size:16px;padding:12px 22px 14px}
.btn .n{font-size:1em}
.btn-hd{font-size:13px;padding:10px 14px}
html[lang="ar"] .btn-hd{font-size:14px;padding:8px 13px 9px}
.btn-big{font-size:17px;padding:18px 30px}
html[lang="ar"] .btn-big{font-size:18px;padding:15px 28px 17px}
.cta{margin:0}

/* ---------- 1 · the X-ray hero ---------- */
.hero{position:relative;min-height:100vh;min-height:100svh;display:flex;align-items:flex-end;overflow:hidden;background:#0A0A0D}
.xray{position:absolute;inset:0;cursor:ew-resize;touch-action:pan-y;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;
  --ty:calc(var(--ky,34%) - 14px);--tx:34px}   /* the tag rides beside the knob, on every screen (phones too since 18 Sep 2026).
  touch-action pan-y, and NOT pinch-zoom: with pinch-zoom allowed, iOS treats a resting thumb plus a dragging finger as a possible
  pinch, cancels the pointers and never sends the finger's pointerdown — measured on Samir's phone, 11 Sep 2026. The rest of the page still zooms. */
.xr-knob:hover,.xray.dragging .xr-knob{transform:scale(1.06);box-shadow:0 0 34px var(--glow)}
.xr-layer{position:absolute;inset:0;overflow:hidden}
.xr-frame{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}
.xr-frame img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;-webkit-user-drag:none;user-drag:none}   /* the hand lands on the frame, never on a draggable image */
.xr-data{-webkit-clip-path:inset(0 0 0 var(--x,58%));clip-path:inset(0 0 0 var(--x,58%))}
html[dir="rtl"] .xr-data{-webkit-clip-path:inset(0 calc(100% - var(--x,42%)) 0 0);clip-path:inset(0 calc(100% - var(--x,42%)) 0 0)}   /* the data opens on the end side: left in Arabic, right in English */
.xr-data::before{content:"";position:absolute;inset:0;z-index:1;background-image:
  linear-gradient(rgba(90,176,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(90,176,255,.06) 1px,transparent 1px);
  background-size:48px 48px;pointer-events:none}
.callouts{list-style:none;margin:0;padding:0;position:absolute;inset:0;z-index:2}
.callouts li{position:absolute;left:var(--cx);top:var(--cy);transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:flex-start;gap:1px;
  padding:9px 12px 8px;border:1px solid rgba(90,176,255,.55);background:rgba(10,10,13,.6);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);
  border-radius:6px;color:var(--accent-2);white-space:nowrap;box-shadow:0 0 22px var(--glow-soft);direction:ltr;transition:opacity .3s}
.callouts li.under{opacity:0}   /* no pin on this screen keeps it clear of the headline (computed in fit()); on a phone, a callout the headline block covers */
@media (max-width:700px){.xray.squeezed .xr-tag{opacity:0}}   /* the smallest phones have no clear row for the whole cluster: the tag yields, the knob keeps its arrows */
.callouts li::before{content:"";position:absolute;left:-7px;top:50%;width:7px;height:7px;margin-top:-4px;border-radius:50%;background:var(--accent);box-shadow:0 0 10px var(--glow)}
.callouts li.al{transform:translate(0,-50%);margin-left:10px}
.callouts li.ar{transform:translate(-100%,-50%);margin-left:-10px}
.callouts li.ar::before{left:auto;right:-7px}
.callouts b{font-family:var(--mono);font-weight:500;font-size:16px;color:#fff;letter-spacing:-.01em}
.callouts span{font-family:var(--mono);font-size:10.5px;letter-spacing:.12em;text-transform:uppercase}
html[lang="ar"] .callouts span{font-family:var(--arabic);font-size:12px;letter-spacing:0;text-transform:none;direction:rtl}
@media (max-width:700px){.callouts li{left:var(--mx,var(--cx));top:var(--my,var(--cy));white-space:normal;max-width:44vw;padding:6px 9px 5px}.callouts b{font-size:13.5px}.callouts span{font-size:11px;line-height:1.35}html[lang="ar"] .callouts span{font-size:12px}.callouts li.lg{display:none}.xray{--ky:42%;--tx:34px}}   /* real sizes, not a scaled box: the captions stay legible; --ky here is the no-JS fallback — fit() writes the row clear of the callouts, and the tag rides beside the knob as on the desktop */
.xr-line{position:absolute;top:0;bottom:0;left:var(--x,58%);width:1px;background:var(--accent);box-shadow:0 0 12px var(--glow),0 0 36px var(--glow);pointer-events:none;z-index:3}
.xr-knob{position:absolute;top:var(--ky,34%);left:var(--kx,var(--x,58%));width:46px;height:46px;margin:-23px 0 0 -23px;border-radius:50%;border:1px solid var(--accent);
  background:rgba(10,10,13,.62);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);box-shadow:0 0 26px var(--glow);z-index:6;cursor:ew-resize;
  display:flex;align-items:center;justify-content:center;color:var(--accent-2);font-family:var(--mono);font-size:13px;letter-spacing:.1em;padding-inline-start:.1em}
.xr-knob::after{content:"";position:absolute;inset:-1px;border-radius:50%;border:1px solid var(--accent);opacity:0;pointer-events:none}
.xr-knob.pulse::after{animation:xr-pulse 1.5s ease-out 2}   /* after the intro settles: the knob breathes twice */
@keyframes xr-pulse{0%{transform:scale(1);opacity:.9}100%{transform:scale(2.2);opacity:0}}
.xr-hint{position:absolute;top:calc(var(--ky,34%) + 34px);left:var(--kx,var(--x,58%));left:clamp(64px,var(--kx,var(--x,58%)),calc(100% - 64px));transform:translateX(-50%);z-index:6;pointer-events:none;
  font-family:var(--mono);font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--accent-2);white-space:nowrap;
  padding:4px 8px;border-radius:4px;background:rgba(10,10,13,.66);transition:opacity .5s}
.xray.touched .xr-hint,.xray.cramped .xr-hint{opacity:0}   /* the coach mark retires after the first real interaction, or when a short screen has no room under the knob */
html[lang="ar"] .xr-hint{font-family:var(--arabic);font-size:12.5px;letter-spacing:0;text-transform:none}
.xr-tag{position:absolute;top:var(--ty,88px);left:calc(var(--kx,var(--x,58%)) + var(--tx,14px));z-index:6;pointer-events:none;font-family:var(--mono);font-size:10.5px;letter-spacing:.18em;text-transform:uppercase;color:var(--accent-2);
  padding:5px 9px;border:1px solid rgba(90,176,255,.45);border-radius:4px;background:rgba(10,10,13,.7);white-space:nowrap;transition:opacity .25s}
.xray.sliver .xr-tag{opacity:0}   /* on a sliver the label would wrap against the edge, and it is redundant there */
html[lang="ar"] .xr-tag{font-family:var(--arabic);font-size:12px;letter-spacing:0;text-transform:none}
html[dir="rtl"] .xr-tag{left:auto;right:calc(100% - var(--kx,var(--x,42%)) + var(--tx,14px))}
html[dir="rtl"] .xr-line{left:var(--x,42%)}html[dir="rtl"] .xr-knob,html[dir="rtl"] .xr-hint{left:var(--kx,var(--x,42%))}   /* without JS the seam, the knob and the data agree in Arabic too */
.xr-range{position:absolute;opacity:0;width:1px;height:1px;left:0;top:0;direction:ltr}   /* physical, like the seam: → is right in both languages */
.xr-range:focus-visible ~ .xr-knob{outline:2px solid #fff;outline-offset:4px}
.hero-veil{position:absolute;inset:0;pointer-events:none;z-index:2;
  background:linear-gradient(to bottom,rgba(10,10,13,.6) 0%,rgba(10,10,13,0) 10%,rgba(10,10,13,0) 48%,rgba(10,10,13,.78) 76%,rgba(10,10,13,.97) 100%)}   /* the top band only covers the header; the shelf below it stays bright */
.hero-txt{position:relative;z-index:5;width:100%;padding-top:120px;padding-bottom:clamp(44px,8vw,96px);pointer-events:none}
.hero-inner{pointer-events:none;max-width:680px}   /* the hand drags the seam through the headline; only the button catches the pointer */
.hero-inner .btn{pointer-events:auto}
.hero h1{font-size:clamp(34px,5.6vw,70px);line-height:1.02;letter-spacing:-.03em;color:#fff}
html[lang="ar"] .hero h1{font-size:clamp(30px,4.8vw,60px);line-height:1.45;letter-spacing:0}
@media (min-width:701px) and (max-height:820px){.hero h1{font-size:clamp(30px,4.4vw,56px)}html[lang="ar"] .hero h1{font-size:clamp(28px,4vw,50px)}}   /* a laptop: the headline a step smaller, so the upper bays above it hold the figures */
@media (max-width:700px) and (max-height:660px){.hero h1{font-size:28px}html[lang="ar"] .hero h1{font-size:27px}.answer{font-size:16px;margin:12px 0 22px}}   /* the smallest phones (640 tall): the headline a step smaller, so the bottom row of figures is not under it */
.answer{margin:20px 0 30px;font-size:clamp(18px,2vw,24px);color:var(--muted);max-width:40ch}
.sentinel{position:absolute;bottom:0;inset-inline-start:0;width:1px;height:1px}
@media (min-width:900px){
  /* two layers: a vertical band for the header and the foot, and a side band that keeps the headline legible over the
     data layer. The side band starts at the headline's top (--veil-top, written by fit()), so the shelf of figures and
     the callouts above the headline are never dimmed by it. */
  .hero-veil{background-image:
    linear-gradient(to bottom,rgba(10,10,13,.6) 0%,rgba(10,10,13,0) 10%,rgba(10,10,13,0) 52%,rgba(10,10,13,.55) 80%,rgba(10,10,13,.94) 100%),
    linear-gradient(to left,rgba(10,10,13,.7) 0%,rgba(10,10,13,.45) 40%,rgba(10,10,13,0) 58%);
    background-size:100% 100%,100% calc(100% - var(--veil-top,0px));background-position:0 0,0 var(--veil-top,0px);background-repeat:no-repeat}
  html[dir="ltr"] .hero-veil{background-image:
    linear-gradient(to bottom,rgba(10,10,13,.6) 0%,rgba(10,10,13,0) 10%,rgba(10,10,13,0) 52%,rgba(10,10,13,.55) 80%,rgba(10,10,13,.94) 100%),
    linear-gradient(to right,rgba(10,10,13,.7) 0%,rgba(10,10,13,.45) 40%,rgba(10,10,13,0) 58%)}
}

/* ---------- blocks ---------- */
.blk{padding-block:clamp(72px,10vw,140px) 0}
.blk .wrap{padding-bottom:clamp(40px,6vw,72px)}
.blk .wrap::before{content:"";display:block;height:1px;margin-bottom:clamp(28px,4vw,44px);
  background:linear-gradient(to right,var(--accent) 0,rgba(90,176,255,.35) 22%,var(--line) 48%,var(--line) 100%)}
html[dir="rtl"] .blk .wrap::before{background:linear-gradient(to left,var(--accent) 0,rgba(90,176,255,.35) 22%,var(--line) 48%,var(--line) 100%)}
.eyebrow{display:flex;gap:14px;align-items:baseline;font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--muted);margin:0 0 18px;line-height:1.4}
.eyebrow .n{color:var(--accent);font-weight:500}
html[lang="ar"] .eyebrow span:not(.n){font-family:var(--arabic);font-size:13.5px;letter-spacing:0;text-transform:none}
h2{font-size:clamp(28px,3.8vw,48px);line-height:1.08;max-width:22ch;margin:0 0 clamp(28px,4vw,48px)}
html[lang="ar"] h2{max-width:26ch;line-height:1.45}
.lede{font-size:clamp(17px,1.5vw,19px);color:var(--muted);max-width:56ch;margin:0 0 32px}

/* ---------- 2 · the Reading: the instrument (18 Sep 2026) ----------
   The five findings as one measured panel in the hero's blueprint grammar — a ruler and a hatched zone,
   or a threshold line and a tally, per finding; thin accent lines on obsidian, mono labels. Every drawn
   proportion is a ratio of two figures in reading/figures.json, written by reading/build.py into the
   inline --a/--w/--x and the tally counts; site.js re-derives them from the panel's data- attributes and
   shouts if a drawing disagrees. The big number and its name are the three-second read; the drawing is
   the second look. Mono labels are sized with #reading in the selector because html[lang="ar"] .n
   would otherwise outrank them. */
.stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.stats.three{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:560px){.stats,.stats.three{grid-template-columns:minmax(0,1fr)}}
.stat{background:var(--bg-2);padding:26px 22px 24px;display:flex;flex-direction:column;gap:8px;transition:background-color .2s}
.stat:hover{background:var(--surface)}
.num{font-family:var(--mono);font-variant-numeric:tabular-nums;font-weight:500;font-size:clamp(26px,2.6vw,36px);letter-spacing:-.02em;line-height:1.1;white-space:nowrap;color:#fff}
html[dir="rtl"] .num{text-align:right}   /* the digits stay LTR; the figure shares its name's edge */
.stat .name,.g .name{font-size:14px;color:var(--muted);line-height:1.5;text-wrap:pretty}
html[lang="ar"] :is(.stat,.g) .name{font-size:14.5px;line-height:1.75}

.inst{position:relative;border:1px solid var(--line);border-radius:12px;background:var(--bg-2);overflow:hidden}
.inst::before{content:"";position:absolute;inset:0;pointer-events:none;z-index:0;background-image:
  linear-gradient(rgba(90,176,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(90,176,255,.045) 1px,transparent 1px);
  background-size:48px 48px}   /* the X-ray twin's grid, a shade quieter */
.inst>*{position:relative;z-index:1}
.inst-hd{display:flex;flex-wrap:wrap;gap:4px 0;align-items:baseline;margin:0;padding:13px 16px 11px;border-bottom:1px solid var(--line);
  font-family:var(--mono);font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);line-height:1.5}
.inst-hd span{white-space:nowrap}
html[lang="ar"] .inst-hd span:not(.n){font-family:var(--arabic);font-size:12.5px;letter-spacing:0;text-transform:none}
html[lang="ar"] .inst-hd .n{font-size:11px;letter-spacing:.06em}
.inst-body{position:relative}
.gauges{list-style:none;margin:0;padding:0}
.g{display:grid;grid-template-columns:minmax(0,1fr);gap:6px 32px;padding:15px 16px 13px;border-top:1px solid var(--line)}
.g:first-child{border-top:0}
@media (min-width:760px){.g{grid-template-columns:minmax(0,.42fr) minmax(0,.58fr);align-items:center;padding:20px 26px}.inst-hd,.inst-ft{padding-inline:26px}}
@media (min-width:1100px){.g{grid-template-columns:minmax(0,.34fr) minmax(0,.66fr);gap:10px 56px}}
.g-fig{display:flex;flex-direction:column;gap:6px;min-width:0}

/* the drawing: --ry is the ruler's row, --zh the zone's height; everything hangs off those two */
.g-draw{position:relative;height:66px;min-width:0;--ry:40px;--zh:20px}
@media (min-width:760px){.g-draw{height:72px;--ry:46px;--zh:24px}}
.g-draw>span,.g-draw>i,.zone>.dl{position:absolute;display:block}
.rule{inset-inline:0;top:var(--ry);height:6px;border-top:1px solid rgba(244,244,247,.22);
  background:repeating-linear-gradient(to right,rgba(244,244,247,.22) 0 1px,transparent 1px calc(100% / var(--n,10)))}   /* --n ticks, then the end tick below */
html[dir="rtl"] .rule{background:repeating-linear-gradient(to left,rgba(244,244,247,.22) 0 1px,transparent 1px calc(100% / var(--n,10)))}
.rule::before,.rule::after{content:"";position:absolute;top:-1px;width:1px;height:9px;background:rgba(244,244,247,.42)}
.rule::before{inset-inline-start:0}.rule::after{inset-inline-end:0}
.tk.mark{top:calc(var(--ry) - 8px);inset-inline-start:var(--x);width:1px;height:14px;background:var(--accent);box-shadow:0 0 8px var(--glow-soft)}
.zone{top:calc(var(--ry) - var(--zh));height:var(--zh);inset-inline-start:var(--a);width:var(--w);
  border-top:1px solid var(--accent-2);border-inline:1px solid rgba(90,176,255,.75);
  background:repeating-linear-gradient(-45deg,rgba(90,176,255,.34) 0 1px,transparent 1px 7px)}
html[dir="rtl"] .zone{background:repeating-linear-gradient(45deg,rgba(90,176,255,.34) 0 1px,transparent 1px 7px)}
.zone .dl{bottom:calc(100% + 5px);inset-inline-start:-1px;white-space:nowrap}
.zone.at-end .dl{inset-inline-start:auto;inset-inline-end:-1px}
#reading .ax,#reading .dl{font-family:var(--mono);font-size:11px;letter-spacing:.1em;text-transform:uppercase;line-height:1.3;white-space:nowrap;color:var(--muted)}
#reading .dl{color:var(--accent-2)}
html[lang="ar"] #reading :is(.ax,.dl){font-family:var(--arabic);font-size:12.5px;letter-spacing:0;text-transform:none}
html[lang="ar"] #reading :is(.ax,.dl) .n{font-size:11px;letter-spacing:.06em}
.ax.s{top:calc(var(--ry) + 10px);inset-inline-start:0}
.ax.e{top:calc(var(--ry) + 10px);inset-inline-end:0}
/* a threshold line and a tally under it: rows 2 and 5 */
.line{inset-inline:0;top:calc(var(--ry) - 14px);height:1px;background:rgba(244,244,247,.3)}
.ax.c{top:calc(var(--ry) - 31px);inset-inline-start:0}
.g-draw .marks{top:calc(var(--ry) - 13px);inset-inline-start:0;display:flex;gap:5px}   /* .g-draw>span would blockify it otherwise */
.marks i{flex:none;width:1px;height:16px;background:var(--accent);box-shadow:0 0 6px var(--glow-soft)}
.marks i:nth-child(5n+1):not(:first-child){margin-inline-start:7px}   /* a gap every five: forty reads as eight fives, not a comb */
.g-draw .rings{top:calc(var(--ry) - 29px);inset-inline-end:0;display:flex;gap:9px}   /* the ring is its label's trailing mark, on the label's own row above the line: it counts one invoice and claims no position on the cost axis */
.rings i{width:9px;height:9px;border:1px solid var(--accent);border-radius:50%;box-shadow:0 0 8px var(--glow-soft)}
#reading .tally .ax.s{color:var(--accent-2)}   /* the tally's count is the row's dimension, like a zone's label */
.tally .ax.e{top:calc(var(--ry) - 31px);inset-inline-end:16px}   /* the ring's label, above the line at the end, the ring after it */
.inst-ft{margin:0;padding:12px 22px 13px;border-top:1px solid var(--line);font-family:var(--mono);font-size:11.5px;line-height:1.6;color:var(--dim);letter-spacing:.02em}
html[lang="ar"] .inst-ft{font-family:var(--arabic);font-size:13.5px;letter-spacing:0;line-height:1.75}
@media (max-width:759px){.inst-hd{padding:11px 16px 9px;font-size:10px;letter-spacing:.1em}.inst-hd span{white-space:normal}.inst-ft{padding-inline:16px}}
/* entry: a seam sweeps the panel once and each drawing appears behind it (site.js clips the drawings to the seam;
   the numbers are never clipped, so a visitor landing mid-scroll sees figures, not an empty card). Without JS
   the panel is simply there; under reduced motion .arm is never set. */
.inst-seam{position:absolute;top:0;bottom:0;left:var(--sx,0);width:1px;background:var(--accent);box-shadow:0 0 12px var(--glow),0 0 36px var(--glow);opacity:0;pointer-events:none;z-index:3}
.inst.sweeping .inst-seam{opacity:1}
.inst.done .inst-seam{opacity:0;transition:opacity .3s}
.inst.broken .g-draw{visibility:hidden}   /* site.js found a drawing that disagrees with the figures: the numbers stay, the drawings go */
@media print{.g-draw{clip-path:none!important;-webkit-clip-path:none!important}.inst-seam{display:none}}

/* ---------- 3 · the first client ---------- */
.three{margin:0 0 8px}

/* ---------- 4 · how it starts ---------- */
.steps{list-style:none;padding:0;margin:0 0 40px;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px}
.steps li{padding:22px 22px 20px;border:1px solid var(--line);border-radius:12px;background:var(--bg-2)}
.sn{display:block;color:var(--accent);font-size:12px;font-weight:500;letter-spacing:.14em;margin-bottom:10px}
.steps p{font-size:16px;color:var(--text)}
html[lang="ar"] .steps p{font-size:16.5px}
.accountant{color:var(--muted);max-width:60ch;font-size:16px;padding-inline-start:18px;border-inline-start:2px solid var(--accent)}
.qlink{margin-top:28px;color:var(--muted);max-width:60ch;font-size:15px}
html[lang="ar"] .qlink{font-size:15.5px}
.qlink a{color:var(--text);text-decoration:none;border-bottom:1px solid var(--accent);padding-bottom:1px;white-space:nowrap;transition:color .2s}
.qlink a:hover{color:var(--accent-2)}   /* the fourteen questions, sent after the call: questions/ */

/* ---------- 5 · what we build ---------- */
.prods{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px;margin:0 0 28px}
.prod{padding:24px 24px 22px;border:1px solid var(--line);border-radius:12px;background:var(--bg-2);transition:border-color .2s,transform .2s,box-shadow .2s}
.prod:hover{border-color:rgba(90,176,255,.6);transform:translateY(-2px);box-shadow:0 12px 40px -24px var(--glow)}
.prod.top{grid-column:1 / -1;background:linear-gradient(135deg,var(--surface),var(--bg-2))}
.prod h3{font-size:19px;margin:0 0 8px}
.prod.top h3{font-size:24px}
.prod p{font-size:15px;color:var(--muted);max-width:60ch}
html[lang="ar"] .prod p{font-size:15.5px}
.proof{font-family:var(--mono);font-size:11.5px;color:var(--dim);letter-spacing:.02em;line-height:1.6}
html[lang="ar"] .proof{font-family:var(--arabic);font-size:13.5px;letter-spacing:0}

/* ---------- 6 · contact, and the foot ---------- */
.contact .wrap{padding-bottom:clamp(64px,9vw,120px)}
.contact h2{margin-bottom:28px}
.phone{margin-top:22px;font-size:14px;color:var(--muted)}
.phone a{color:var(--text);text-decoration:none;border-bottom:1px solid var(--accent);padding-bottom:1px;font-family:var(--mono)}
html[lang="ar"] .phone{font-size:15px}
.ft{border-top:1px solid var(--line);padding:32px 0 56px;color:var(--dim);font-size:13px}
html[lang="ar"] .ft{font-size:14px}
.ft .wrap{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
.wm-ft img{height:11px}

@media (prefers-reduced-motion: reduce){
  *{transition:none !important;animation:none !important}
}
