/* DABB — the seven figures: the plate book (about page; recomposed after the owner's rewrite, DESIGN2.md amendment 5;
   brought back by amendment 8 — 2026-10-17 — and TURNED BY SCROLLING).
   Seven figures, one per page (.why__track > .why__page × 7). A page holds only its number and theme, the headline, the
   description, THE LIVING FIGURE and «عندنا» (at DABB):
       FIG. NN · theme                          │
       the HEADLINE                             │
       the description                          │            the LIVING PLATE (large)
       ─────────────────────────────────────────│
       at DABB ──────────                       │
       the PRINCIPLE · the practice             │            one line under it: what moves in it
   (.why__note the words about the animal, .why__rule what we take from it, .why__fig the plate.) FIG. 03 is the panorama:
   from 900 px its plate spans the page, the description and «عندنا» stand side by side under it.
   IN THE SUN (amendment 7): .in-sun on the section — deep type on the lifted sand; the top bar turns light over it.

   TWO WAYS TO READ IT (js/parts/02-why.js sets the mode):
     .why--hold   the book HOLDS in view (sticky, the height of the screen under the top bar) inside a tall runway, and
                  the reader's scrolling turns its pages: all seven lie in ONE grid cell, the open one (.is-open) shown,
                  the ones before it (.is-past) gone up, the ones after it waiting below — the next page slides and
                  fades in, the last one out. The pages share two rows (subgrid): the description's row is as tall as the
                  longest description, so the hairline of «عندنا» stands at one height while the pages turn.
                  .why--tight: the same, set a little closer, when a page would not fit otherwise; .why--tighter (with
                  it) closer still, its two headlines a step smaller — only then is the book read in flow.
     flow         (phones, low screens, reduced motion, no script) the pages one after another; the index sticks under
                  the top bar.
   The index: seven stops on a rule; the rule FILLS with the reading (.why__fill, scaleX) and a dot rides its edge
   (.why__dot) — both written by the script as transforms. The open page's tab is marked ([aria-current]), the ones read
   before it are deep (.is-read). Under 900 px the index is a counter.
   The plate (amendment 4): .why__frame (the corner marks) > .why__plate > canvas.why__cv (the living figure, drawn by its
   module) · the plate's own light (::after) · .why__over (real-text labels on the picture: .why__tag, .why__key — white
   on a small patch of shade: they lie on the picture, not on the page). FIG. 01 also carries a real range input drawn as
   a thermometer (--heat).
   State: .why--hold · .why--tight · .why--tighter · .why__page.is-open / .is-past · .why__tab[aria-current] / .is-read ·
   .why__step[aria-disabled] · .why__bar.is-stuck · .why__plate.is-live · html:not(.js) = plain reading.  */

.why {
  --why-top: calc(var(--band-total, 10px) + var(--header-h));     /* the fixed chrome: band + header */
  --why-gap: clamp(24px, 2.3vw, 32px);
  --why-fs-2: calc((var(--fs-h2) + var(--fs-h3)) / 2);            /* the second voice (the principle): between h3 and h2 */
  --why-pad: clamp(72px, 9vw, 144px);                             /* a page of optional reading: closer than the home page's sections */
  --why-page-gap: clamp(72px, 9vw, 128px);                        /* flow: between one page and the next */
  padding-block: calc(var(--why-pad) * 0.62) var(--why-pad);      /* (no head of its own: the book begins sooner under the opener) */
}
.why > .divider { margin-block: calc(var(--why-pad) * 0.5) calc(var(--s-6) - var(--why-pad)); --plate-paper: var(--sun-paper); }      /* the landscape strip closes the section, drawn in ink on the lit sand */

/* ───────────────────────── the book ───────────────────────── */
.why__book { position: relative; }

/* ── the index bar: sticks under the header while the book is read ── */
.why__bar {
  position: sticky; inset-block-start: var(--why-top); z-index: 3;
  display: flex; align-items: stretch; gap: var(--s-4);
  padding-block: var(--s-2) var(--s-3);                           /* the controls stand clear of the header above and of the rule and its fill below */
  border-block-end: var(--hair) solid var(--rule);
}
/* while it is held under the header (.is-stuck) it is the top bar's own light — a translucent light with a blur, from
   one edge of the screen to the other, never a solid strip; in its own place it has no ground of its own */
.why__bar::before {
  content: ""; position: absolute; z-index: -1; inset-block: 0; inset-inline: -100vw;
  background: rgba(var(--sun-rgb), 0.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; transition: opacity var(--t-2) var(--e-std);
}
.why__bar.is-stuck::before { opacity: 1; }
.why__scale { flex: 1 1 auto; min-inline-size: 0; display: flex; align-items: center; position: relative; }

/* seven stops on the rule, and the reading: a 2 px fill from the start to where the reader is, a dot at its edge */
.why__stops {
  position: absolute; inset-inline: 0; inset-block-end: calc(var(--s-3) * -1); block-size: 5px;
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); pointer-events: none;
}
.why__stops i { border-inline-start: var(--hair) solid var(--rule-2); }
.why__marker { position: absolute; inset-inline: 0; inset-block-end: calc(var(--s-3) * -1 - 1px); block-size: 2px; pointer-events: none; }
.why__fill {
  position: absolute; inset: 0; background: var(--accent-text);  /* the deep ink in the sun */
  transform: scaleX(0); transform-origin: 0 50%;
}
[dir="rtl"] .why__fill { transform-origin: 100% 50%; }
.why__dot {
  position: absolute; inset-inline-start: -4px; inset-block-start: -3.5px;
  inline-size: 9px; block-size: 9px; border-radius: 50%; background: var(--accent-text);
}
html:not(.js) .why__marker { display: none; }

/* tabs (from 900 px) */
.why__nav { display: none; flex: 1 1 auto; min-inline-size: 0; align-self: stretch; }
.why__tabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); block-size: 100%; }
.why__tab-item { display: grid; min-inline-size: 0; }
.why__tab {
  display: flex; align-items: center; gap: 0.75em; min-inline-size: 0;
  margin-inline-start: calc(var(--s-2) * -1); padding-inline: var(--s-2) var(--s-3); padding-block-end: 2px;      /* the text stands on its stop; the focus ring gets air */
  color: var(--fg-2); text-decoration: none; white-space: nowrap;
}
.why__tab-n { color: var(--fg-2); }
.why__tab.is-read { color: var(--fg); }
.why__tab:hover, .why__tab[aria-current="true"] { color: var(--fg); }
.why__tab:hover .why__tab-n, .why__tab[aria-current="true"] .why__tab-n, .why__tab.is-read .why__tab-n { color: inherit; }
.why__tab[aria-current="true"] .why__tab-name { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.42em; }      /* where you are: the open page's name is underlined, the fill under it is still running */
html[lang="ar"] .why__tab[aria-current="true"] .why__tab-name { text-underline-offset: 0.5em; }
.why__tab:focus-visible { outline-offset: -4px; }

/* the counter (under 900 px):  03 / 07 · House */
.why__count { gap: 0.75em; color: var(--fg); white-space: nowrap; }
.why__count-of { display: inline-flex; gap: 0.75em; color: var(--fg-2); }      /* separate runs, so "01 / 07" follows the page's direction */
.why__count-name::before { content: "·"; margin-inline-end: 0.75em; color: var(--fg-2); }

/* previous / next */
.why__steps { flex: none; display: flex; align-items: center; gap: var(--s-2); }
.why__step {
  display: inline-grid; place-items: center; inline-size: 44px; block-size: 44px;
  color: var(--fg); border: var(--hair) solid var(--rule-2); border-radius: 50%;
}
.why__step .ico { inline-size: 18px; block-size: 18px; }
.why__step--prev .ico, [dir="rtl"] .why__step--next .ico { transform: scaleX(-1); }      /* one arrow: it points back, or — in Arabic — forward to the left */
[dir="rtl"] .why__step--prev .ico { transform: none; }
.why__step:hover { background: var(--fg); color: var(--on-btn); border-color: var(--fg); }
.why__step--next:hover .ico, [dir="rtl"] .why__step--prev:hover .ico { transform: translateX(3px); }
.why__step--prev:hover .ico, [dir="rtl"] .why__step--next:hover .ico { transform: scaleX(-1) translateX(3px); }
.why__step[aria-disabled="true"] { color: var(--fg-3); border-color: var(--rule); background: none; cursor: default; }
.why__step[aria-disabled="true"] .ico { opacity: 0.5; }
.why__step--next[aria-disabled="true"] .ico, [dir="rtl"] .why__step--prev[aria-disabled="true"] .ico { transform: none; }
.why__step--prev[aria-disabled="true"] .ico, [dir="rtl"] .why__step--next[aria-disabled="true"] .ico { transform: scaleX(-1); }

/* ── the pages: one after another (flow) ── */
.why__track { position: relative; z-index: 0; display: grid; grid-template-columns: minmax(0, 1fr); row-gap: var(--why-page-gap); padding-block: calc(var(--why-gap) + var(--s-3)) 0; }      /* (its own stacking: the thermometer and the labels on a plate pass UNDER the index bar) */
.why__track:focus-visible { outline-offset: 4px; }
.why__page {
  display: flex; flex-direction: column; min-inline-size: 0;
  scroll-margin-block-start: calc(var(--why-top) + 64px + var(--s-3));      /* without scripts a tab is a plain link to its page */
}

/* ───────────────────────── the dabb: number · theme, the headline, the description ───────────────────────── */
.why__note { display: flex; flex-direction: column; min-inline-size: 0; }
.why__kicker { align-self: flex-start; gap: 0.75em; color: var(--fg); }
.why__kicker-n { color: var(--fg-2); }
.why__kicker-dot { color: var(--fg-2); }                          /* number · theme: a point between them, never a dash */
.why__fact { margin-block-start: var(--s-4); text-wrap: balance; }
.why__s { display: inline-block; }                                /* a sentence or a clause: the headline breaks between them (set by the script) */
.why__detail { margin-block-start: var(--s-5); max-inline-size: 58ch; color: var(--fg-2); text-wrap: pretty; }

/* ───────────────────────── the figure ───────────────────────── */
.why__fig { order: -1; min-inline-size: 0; margin-block-end: var(--s-6); container-type: inline-size; }      /* on a phone the plate comes first */
/* the frame: four corner marks, and the plate a hair inside them — a picture with its register marks */
.why__frame { --why-inset: 9px; position: relative; aspect-ratio: 1 / 0.96; color: var(--fg); }
.why__page--house .why__frame { aspect-ratio: 1 / 0.86; }
.why__plate {
  position: absolute; inset: var(--why-inset); overflow: hidden; border-radius: var(--r-1); isolation: isolate;
  background: var(--sun-paper);                                   /* (until its figure has painted: the sand's own mean in the sun) */
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.why__cv { position: absolute; inset: 0; z-index: 0; display: block; inline-size: 100%; block-size: 100%; }
/* the plate's light: the sun's own lift over the whole picture, as over the page round it (what is painted on a ground
   in the sun takes the sun's lift too, or it shows as a darker patch), and a breath of shade at its edges — a transparent
   layer over the sand, the same on every plate, so the seven sit in the page alike (a figure paints its sand in full sun) */
.why__plate::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 120% at 40% 36%, rgba(var(--shade-rgb), 0) 0, rgba(var(--shade-rgb), 0.03) 50%, rgba(var(--shade-rgb), 0.14) 100%),
    linear-gradient(rgba(var(--sun-rgb), var(--sun-lift)), rgba(var(--sun-rgb), var(--sun-lift)));
}
/* (2026-10-19) every other plate's sand is the page's own — the same painter, wind, period and strength (GROUND in
   js/parts/02-why-figs-a.js, -b.js), painted at the page's own grain (one pixel per CSS px, as the ground tile) — so it
   takes the sun's lift alone: a breath of shade at its edges would show it as a darker rectangle laid on the page.
   (Since 2026-10-21 every figure lies in the page's own ground, FIG. 01 too: .is-ground below. These two rules are only
   the plain plate's light, for a page whose figure is missing or failed.) */
.why__plate:not([data-why-plate="heat"])::after { background: linear-gradient(rgba(var(--sun-rgb), var(--sun-lift)), rgba(var(--sun-rgb), var(--sun-lift))); }
/* a plate that lies IN the page's own ground (FIG. 02, 2026-10-19: its loose sand is the page's sand, unbroken through the
   frame; FIG. 03 to 07 since 2026-10-20 — the owner: "make the background ONE, no borders" — RECIPE.md §8; FIG. 01 since
   2026-10-21 — the owner, of its cold plate: «العرض نفس الخلفية», the same background): its figure
   paints only what lies on that sand (and the ground it works, as soft patches of the same sand) and lays the sun's lift
   on it itself — no paper, no plate light, no sand of its own, no veil — and its canvas's own edge fades into this sand
   over the same 30 px (D.whyGround, js/parts/02-why-figs-a.js) (.is-ground is set by the figure; a figure that fails
   keeps the plain plate). The sand under it is the page's own ground,
   CARRIED BY THE PLATE (2026-10-20): the same tile under the section's same light (base.css: .sec), laid where the page's
   lies round the frame when the page is open (--gx / --gy: js/parts/02-why.js) — so in the held book the drawing and its
   sand move as one piece, never the drawing gliding over a sand that scrolls on under it. Its last few ripples fade into
   the page's own (the plate itself is clear): at rest the two are the same sand and nothing shows. In the HELD book
   (.why--hold, below) the plate lays no sand at all: the book's own ground layer lies under it, so nothing tells the
   plate from the page at a stop, between stops, or while the reader scrolls */
.why__plate.is-live.is-ground { background: none; }
.why__plate.is-live.is-ground::before {
  --f: 30px;
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(rgba(var(--shade-rgb), var(--sh, 0)), rgba(var(--shade-rgb), var(--sh, 0))),
    linear-gradient(rgba(var(--sun-rgb), var(--sun, 0)), rgba(var(--sun-rgb), var(--sun, 0))),
    url("../../assets/ground/sand-tile.jpg?v=2562301486") var(--gx, 0px) var(--gy, 0px) / var(--ground-size) var(--ground-size) repeat,
    var(--sand-mean);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--f), #000 calc(100% - var(--f)), transparent), linear-gradient(to bottom, transparent, #000 var(--f), #000 calc(100% - var(--f)), transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 var(--f), #000 calc(100% - var(--f)), transparent), linear-gradient(to bottom, transparent, #000 var(--f), #000 calc(100% - var(--f)), transparent);
  mask-composite: intersect;
}
.why__plate.is-live.is-ground::after { content: none; }
/* over the picture: real text, laid by the figure. A tag stands at the plate's top-left corner and is moved by its
   figure (transform: plate px — a canvas does not mirror, so `left` is meant). White on a small patch of shade: it lies
   on the picture (the page's in-the-sun ink is for the page) */
.why__over {
  --fg: var(--dabb-white); --fg-2: #F2ECE4;                       /* (the shade's own whites, restated: the section is in the sun) */
  position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none;
}
.why__tag {
  position: absolute; left: 0; top: 0; margin: 0; padding: 2px 6px; max-inline-size: none;      /* one line: its patch as long as its words (a cap in ch cut "One door, about 22 cm wide" short of its patch) */
  font-family: var(--f-mono); font-size: var(--fs-xs); font-weight: 500; line-height: 1.35; letter-spacing: 0;
  color: var(--fg); background: rgba(var(--shade-rgb), 0.66); border-radius: 2px;      /* a small patch of shade, not of paint */
  white-space: nowrap; will-change: transform;
}
.why__tag--wrap { white-space: normal; text-wrap: balance; max-inline-size: 24ch; }
.why__tag--quiet {                                                 /* a hint ("Drag, or use the arrow keys, …"): it may take two lines, inside its patch */
  color: var(--fg-2); background: rgba(var(--shade-rgb), 0.56);
  white-space: normal; inline-size: max-content; max-inline-size: min(36ch, calc(100% - 24px)); text-wrap: balance;
}
.why__tag b, .why__tag .num { font-weight: 500; color: var(--fg); }
html[lang="ar"] .why__tag { font-family: var(--f-text); line-height: 1.55; }
/* a legend in a corner of the plate: a few lines, each with its small key */
.why__key {
  position: absolute; inset-block-start: var(--s-3); inset-inline-start: var(--s-3); margin: 0; padding: var(--s-2) var(--s-3);
  display: grid; gap: 2px; max-inline-size: min(34ch, 62%);
  font-family: var(--f-mono); font-size: var(--fs-xs); font-weight: 500; line-height: 1.45; color: var(--fg-2);
  background: rgba(var(--shade-rgb), 0.66); border-radius: 2px;
}
.why__key--foot { inset-block: auto var(--s-3); }
.why__key--end { inset-inline: auto var(--s-3); }
.why__key b { font-weight: 500; color: var(--fg); }
.why__key-row { display: flex; align-items: baseline; gap: 0.7em; margin: 0; }
.why__key-head { margin-block-start: var(--s-2); }
.why__key-bar { display: grid; grid-template-columns: 78px auto; align-items: center; gap: 0 0.8em; }      /* two bars on one scale: 3 px to the degree */
.why__key-bar i { inline-size: calc(var(--v) * 3px); block-size: 4px; background: var(--fg); }
/* a small plate (a phone): the legend keeps its numbers and drops its words — they stand in the description under the plate */
@container (max-width: 520px) {
  .why__key { padding: var(--s-1) var(--s-2); max-inline-size: 70%; }
  .why__key-more { display: none; }
  .why__key-bar { grid-template-columns: 52px auto; }
  .why__key-bar i { inline-size: calc(var(--v) * 2px); }
}
html[lang="ar"] .why__key { font-family: var(--f-text); line-height: 1.6; }
/* the panorama is the one plate the visitor takes hold of (it is dragged along) */
.why__page--house .why__plate { touch-action: pan-y; cursor: grab; }
.why__page--house .why__plate.is-held { cursor: grabbing; }

/* caption row */
.why__cap {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-5);
  margin-block-start: var(--s-3); padding-block-start: var(--s-3);
  border-block-start: var(--hair) solid var(--rule);
}
.why__cap-fig { align-items: baseline; color: var(--fg); }
.why__cap-fig > :first-child { display: none; flex: none; white-space: nowrap; }      /* phones: the number stands in the kicker right under the caption */
.why__cap:not(:has(.is-on)) { display: none; }                    /* no line to say: no bare "Fig. NN" under the plate */
.why__cap-text:empty { display: none; }
.why__cap-text { color: var(--fg-2); text-transform: none; letter-spacing: 0; }      /* a sentence with units in it: never capitals */

/* ── FIG. 01: the temperature scale, over the foot of the living plate ──
   (2026-10-21, the owner: «العرض نفس الخلفية») NO BOX OF ITS OWN: it was a patch of shade (0.62) with white type, a dark
   box at the plate's foot. Now it is the page's own deep type, scale and marker on the page's own sand, as the words round
   the plate (.in-sun: --sun-ink 7.14 : 1, --sun-ink-2 5.89 : 1 on the darkest grain, lifted); the figure keeps its pool of
   shade clear of it (js/parts/02-why-figs-a.js, FIG. 01: the pool gives out 12 px above it) */
.why__heat {
  position: absolute; z-index: 3; inset-inline: calc(var(--why-inset) + var(--s-3)); inset-block-end: calc(var(--why-inset) + var(--s-3));      /* clear of the corner marks */
  padding: var(--s-2) var(--s-2) var(--s-1);
  color: var(--fg);
}
.why__heat-hint { font-size: var(--fs-sm); line-height: var(--lh-sm); color: var(--fg-2); text-wrap: balance; }
.why__heat-row { display: flex; align-items: center; gap: var(--s-3); }
.why__heat-end { flex: none; color: var(--fg); }
.why__heat-scale { --heat: 0; --thumb: 14px; position: relative; flex: 1 1 auto; min-inline-size: 0; block-size: 44px; }
.why__heat-scale::before {                                         /* the scale's base line */
  content: ""; position: absolute; inset-inline: calc(var(--thumb) / 2); inset-block-start: 50%;
  block-size: var(--hair); background: var(--rule-2);
}
.why__heat-ticks {                                                 /* twenty-one ticks, like the rings of the tail */
  position: absolute; inset-inline-start: calc(var(--thumb) / 2); inset-block-start: 50%;
  inline-size: calc(100% - var(--thumb)); max-inline-size: none; block-size: 9px; overflow: visible;
  fill: none; stroke: var(--rule-2); stroke-width: 1;
}
.why__heat-col {                                                   /* the column: from the cold end to the marker */
  position: absolute; inset-inline: calc(var(--thumb) / 2); inset-block-start: calc(50% - 1px); block-size: 2px;
  background: var(--fg); transform: scaleX(var(--heat)); transform-origin: 0 50%;
}
[dir="rtl"] .why__heat-col { transform-origin: 100% 50%; }
.why__heat-in {
  position: absolute; inset: 0; inline-size: 100%; block-size: 100%; margin: 0; padding: 0;
  -webkit-appearance: none; appearance: none; background: transparent; cursor: ew-resize; touch-action: pan-y;
}
.why__heat-in::-webkit-slider-runnable-track { block-size: var(--thumb); background: transparent; border: 0; }
.why__heat-in::-moz-range-track { block-size: var(--thumb); background: transparent; border: 0; }
.why__heat-in::-webkit-slider-thumb {                              /* the marker: a single scale */
  -webkit-appearance: none; appearance: none; box-sizing: border-box;
  inline-size: var(--thumb); block-size: var(--thumb); border: 0; border-radius: 50%;
  background: var(--fg);
}
.why__heat-in::-moz-range-thumb {
  box-sizing: border-box; inline-size: var(--thumb); block-size: var(--thumb); border: 0; border-radius: 50%;
  background: var(--fg);
}
.why__heat-in:focus-visible { outline-offset: -4px; }

/* ───────────────────────── at DABB ───────────────────────── */
.why__rule { display: grid; gap: var(--s-4); align-content: start; margin-block-start: var(--s-7); }
/* its hairline starts from its own label: «عندنا» / At DABB */
.why__link { display: flex; color: var(--fg); }
.why__link::after { content: ""; flex: 1 1 auto; block-size: var(--hair); background: var(--rule-2); }
.why__link > * { flex: none; }
.why__principle { margin-block-start: var(--s-2); font-size: var(--why-fs-2); line-height: var(--lh-h2); text-wrap: balance; }
.why__practice { max-inline-size: 58ch; color: var(--fg-2); text-wrap: pretty; }

/* ───────────────────────── foot ───────────────────────── */
/* one line, and where it ends ONE arfaj in flower (Rhanterium epapposum — the plant that stands for DABB itself: its flower
   heads are the brand's yellow, found in nature) rooted in the hairline. Decoration. */
.why__respect {
  --plant: clamp(56px, 6vw, 84px);
  position: relative; display: block; margin-block-start: var(--s-7); padding-block-start: var(--s-4); padding-inline-end: calc(var(--plant) + var(--s-4));
  border-block-start: var(--hair) solid var(--rule); line-height: 1.7;
}
.why__plant { position: absolute; inset-inline-end: 0; inset-block-start: calc(var(--plant) * -0.66); }

/* ───────────────────────── without scripts: plain reading ───────────────────────── */
html:not(.js) .why__steps, html:not(.js) .why__count,
html:not(.js) .why__heat, html:not(.js) .why__frame { display: none; }
html:not(.js) .why__bar { position: static; }
@media (max-width: 899px) {
  html:not(.js) .why__bar { display: none; }
}

/* ───────────────────────── phones: a page is its plate, then its words ───────────────────────── */
@media (max-width: 899px) {
  /* (2026-10-21, the owner: on a phone the first figure must be there at once — css/parts/20-about.css, js/parts/20-about.js)
     the book begins closer under the opener's lead, and its first plate closer under the index: FIG. 01 lies whole in the
     first screen, above the dock, from 390 × 844 to 360 × 780 */
  .why { padding-block-start: var(--s-4); }
  .why__track { padding-block-start: var(--s-5); }
  .why__track { row-gap: var(--why-page-gap); }
  .why__page + .why__page { position: relative; }
  .why__page + .why__page::before {                                /* between two pages: one short rule at the start edge, the book's hairline */
    content: ""; position: absolute; inset-inline-start: 0; inset-block-start: calc(var(--why-page-gap) * -0.5);
    inline-size: 48px; block-size: var(--hair); background: var(--rule-2);
  }
}

/* ───────────────────────── from 900 px: the sheet ───────────────────────── */
@media (min-width: 900px) {
  .why__bar { padding-block: 0; min-block-size: 60px; }
  .why__stops { inset-block-end: 0; }
  .why__marker { inset-block-end: -1px; }
  .why__nav { display: block; }
  .why__count { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }      /* still announced to assistive technology */
  .why__track { padding-block-start: calc(var(--why-gap) * 1.5); }
  .why__page { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr; column-gap: var(--gutter); }
  .why__page + .why__page { border-block-start: var(--hair) solid var(--rule); padding-block-start: calc(var(--why-gap) * 1.5); margin-block-start: calc(var(--why-page-gap) * -0.5); }      /* flow: one hairline between two pages */
  .why__note { grid-column: 1 / span 6; grid-row: 1; padding-inline-end: var(--gutter); }
  .why__rule { grid-column: 1 / span 6; grid-row: 2; padding-inline-end: var(--gutter); }
  .why__fig { grid-column: 7 / -1; grid-row: 1 / span 2; order: 0; margin-block: 0; display: flex; flex-direction: column; }
  /* every page's frame is as tall as the rows let it be — never taller than a little over its own width */
  .why__frame { flex: 1 1 auto; aspect-ratio: auto; min-block-size: min(84cqi, 560px); max-block-size: 104cqi; }
  .why__cap { flex: none; }
  .why__page:not(.why__page--house) .why__cap-fig > :first-child { display: inline; }      /* (the panorama's number stands in the kicker right under it) */

  /* FIG. 03 — the panorama: the plate spans the page; under it the description and «عندنا», side by side */
  .why__page--house { grid-template-rows: auto 1fr; row-gap: var(--s-6); }
  .why__page--house .why__fig { grid-column: 1 / -1; grid-row: 1; }
  .why__page--house .why__frame { flex: none; aspect-ratio: auto; block-size: clamp(300px, 28.5vw, 430px); min-block-size: 0; max-block-size: none; }
  .why__page--house .why__note { grid-column: 1 / span 6; grid-row: 2; }
  .why__page--house .why__rule { grid-column: 7 / -1; grid-row: 2; margin-block-start: 0; padding-inline-end: 0; }
}

/* ───────────────────────── from 1200 px: the words take five columns, the plate seven ───────────────────────── */
@media (min-width: 1200px) {
  .why__note, .why__rule { grid-column: 1 / span 5; }
  .why__fig { grid-column: 6 / -1; }
  .why__page--house .why__note { grid-column: 1 / span 6; }
  .why__page--house .why__rule { grid-column: 7 / -1; }
  .why__heat { padding: var(--s-2) var(--s-4) var(--s-2); }
}

/* ───────────────────────── HOLD: the book stays, the scrolling turns its pages ─────────────────────────
   (js/parts/02-why.js sets .why--hold only from 900 px, and the runway's height: --why-run is not used, the script writes
   the height itself.) The book is the screen under the top bar; the bar stands at its top, the pages fill the rest. */
@media (min-width: 900px) {
  .why--hold .why__book {
    position: sticky; inset-block-start: var(--why-top);
    display: flex; flex-direction: column;
    block-size: calc(100vh - var(--why-top));
  }
  @supports (block-size: 100svh) { .why--hold .why__book { block-size: calc(100svh - var(--why-top)); } }
  /* THE HELD BOOK CARRIES THE PAGE'S GROUND (2026-10-20, after the check of «الخلفية وحده مافي حدود»: while the book was
     held, the page's sand scrolled on past the plates and each plate's own sand stood still — a still rectangle in moving
     sand; and between two stops the page's ripples did not run on into a plate). A layer the size of the book, under it,
     the whole width of the window, holds in view with it (sticky) and lays the page's own ground: the tile under the
     section's light, in the page's phase where the runway begins (--bgx / --bgy: js/parts/02-why.js ground()). Before the
     book is held, and after it lets go, the layer scrolls with the page and IS the page's ground; while it is held nothing
     scrolls under the book, and the clear plates (FIG. 02 to 07) need no sand of their own: their drawing lies on this
     ground, the same at every stop and between them. The runway is held for a whole number of tiles (measure()), so the
     layer meets the page's ground again where the book lets go. The book lies over the layer (its negative margin; a
     negative margin on the layer itself would let it hang past the runway's end) */
  .why--hold .why__run::before {
    content: ""; position: sticky; inset-block-start: var(--why-top); z-index: 0; display: block; pointer-events: none;
    block-size: calc(100vh - var(--why-top)); inline-size: 100vw; margin-inline-start: calc(50% - 50vw);
    background:
      linear-gradient(rgba(var(--shade-rgb), var(--sh, 0)), rgba(var(--shade-rgb), var(--sh, 0))),
      linear-gradient(rgba(var(--sun-rgb), var(--sun, 0)), rgba(var(--sun-rgb), var(--sun, 0))),
      url("../../assets/ground/sand-tile.jpg?v=2562301486") var(--bgx, 0px) var(--bgy, 0px) / var(--ground-size) var(--ground-size) repeat,
      var(--sand-mean);
  }
  .why--hold .why__book { margin-block-start: calc(var(--why-top) - 100vh); }
  @supports (block-size: 100svh) {
    .why--hold .why__run::before { block-size: calc(100svh - var(--why-top)); }
    .why--hold .why__book { margin-block-start: calc(var(--why-top) - 100svh); }
  }
  .why--hold .why__plate.is-live.is-ground::before { content: none; }
  .why--hold .why__bar { position: relative; inset-block-start: auto; flex: none; }
  .why--hold .why__track {
    flex: 1 1 auto; min-block-size: 0;
    grid-template-rows: auto 1fr; row-gap: 0;
    padding-block: clamp(20px, 3.4vh, 40px) clamp(16px, 2.8vh, 32px);
  }
  /* all seven in ONE cell; they share its two rows */
  .why--hold .why__page { grid-column: 1; grid-row: 1 / span 2; }
  .why--hold .why__page + .why__page { border: 0; padding: 0; margin: 0; }
  @supports (grid-template-rows: subgrid) { .why--hold .why__page:not(.why__page--house) { grid-template-rows: subgrid; } }
  .why--hold .why__fig { min-block-size: 0; }
  /* the chat bubble stands fixed in the end corner of the screen (00-wa.css: 48 px + 16 px of air): the end column — the
     figure, and under the panorama «عندنا» — ends above it, so nothing of the book lies under it */
  .why--hold .why__fig, .why--hold .why__page--house .why__rule { margin-block-end: calc(76px - clamp(16px, 2.8vh, 32px)); }
  .why--hold .why__frame { min-block-size: 0; max-block-size: 104cqi; }
  /* the panorama takes what the words under it leave */
  .why--hold .why__page--house { grid-template-rows: minmax(0, 1fr) auto; }
  .why--hold .why__page--house .why__fig { min-block-size: 220px; margin-block-end: 0; }
  .why--hold .why__page--house .why__frame { flex: 1 1 auto; block-size: auto; max-block-size: clamp(300px, 28.5vw, 430px); }
  /* a little closer, when a page would not fit otherwise */
  .why--tight .why__fact { margin-block-start: var(--s-3); }
  .why--tight .why__detail { margin-block-start: var(--s-4); }
  .why--tight .why__rule { margin-block-start: var(--s-5); gap: var(--s-3); }
  .why--tight .why__page--house { row-gap: var(--s-5); }
  /* closer still, on a low laptop window (1366 × 768, 1536 × 735 …) — the two headlines a step smaller, the page a little
     higher — rather than give up the held book: the same look, set closer */
  .why--tighter .why__track { padding-block-start: clamp(12px, 2vh, 24px); }
  .why--tighter .why__fact { margin-block-start: var(--s-2); font-size: calc(var(--fs-h2) * 0.84); }
  .why--tighter .why__detail { margin-block-start: var(--s-3); }
  .why--tighter .why__rule { margin-block-start: var(--s-4); gap: var(--s-2); }
  .why--tighter .why__principle { font-size: calc(var(--why-fs-2) * 0.86); }
  .why--tighter .why__page--house { row-gap: var(--s-4); }

  /* the turn: the open page in place; the ones before it gone a little up, the ones after it waiting a little below —
     so the next page comes up into place as the last one leaves, and back the other way */
  .why--hold .why__page { visibility: hidden; pointer-events: none; }
  .why--hold .why__page.is-open { visibility: visible; pointer-events: auto; }
  .why--hold .why__page > * { opacity: 0; transform: translate3d(0, var(--why-slide, 28px), 0); }
  .why--hold .why__page > .why__fig { --why-slide: 14px; }
  .why--hold .why__page.is-past > * { transform: translate3d(0, calc(var(--why-slide, 28px) * -0.7), 0); }
  .why--hold .why__page.is-open > * { opacity: 1; transform: none; }
  .why--measure .why__page > * { transform: none !important; transition: none !important; }      /* (the script measures the pages without the turn's offsets) */
}

/* ───────────────────────── motion: one quick move, then still ───────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  html:not(.is-calm) .why__step .ico { transition: transform var(--t-3) var(--e-dash); }
  html:not(.is-calm) .why__step { transition: background-color var(--t-1) var(--e-std), color var(--t-1) var(--e-std), border-color var(--t-1) var(--e-std); }
  html:not(.is-calm) .why__tab { transition: color var(--t-2) var(--e-std); }
  /* the turn: the page that leaves fades at once and goes; the page that comes waits a breath, then rises into place —
     the words first, the figure with them, «عندنا» a little after */
  html:not(.is-calm) .why--hold .why__page { transition: visibility 0s linear 420ms; }
  html:not(.is-calm) .why--hold .why__page.is-open { transition: visibility 0s; }
  html:not(.is-calm) .why--hold .why__page > * { transition: opacity 240ms var(--e-std), transform 420ms var(--e-std); }
  html:not(.is-calm) .why--hold .why__page.is-open > * { transition: opacity 420ms var(--e-std) 150ms, transform 640ms var(--e-dash) 120ms; }
  html:not(.is-calm) .why--hold .why__page.is-open > .why__fig { transition-delay: 110ms, 90ms; }
  html:not(.is-calm) .why--hold .why__page.is-open > .why__rule { transition-delay: 220ms, 200ms; }
}
