/* IKTEN landing · section «ΚΑΙ ΑΠΟ ΤΗΝ ΑΛΛΗ ΠΛΕΥΡΑ ΤΟΥ ΓΚΙΣΕ.» (#ypiresia) · owner: builder yp · class prefix: ypi-
   Place: after «ΕΣΥ ΕΛΕΓΧΕΙΣ ΚΙ ΕΓΚΡΙΝΕΙΣ.» (#elegxos), before #tainia. Greek copy: the brief of the builder (v2, 29/11),
   word for word. Look: work/LIGHT_SPEC.md (the contract is its part f) and the live layer css/live.css.
   This file styles ONLY this section: every selector carries .ypi-…, .sec-ypiresia or #ypiresia; @keyframes start with ypi-.

   The one moment: THE COUNTER («το γκισέ»). One desk cut in two by a pane of glass: the contractor's side (A) and the
   Service's side (B), each a photograph (placeholders). One paper, the sample page of the film, lies on A with the
   contractor's signature; as the visitor scrolls it slides under the glass through the slot to B, and the Service's
   green seal comes down on it (no words: the seal says nothing that could be false). On B lies the Service's own
   keyboard: a white plate with the six keys of the buttons whose role includes the Service, lit.
   Above 1100 px the halves stand side by side (A | glass | B, the paper moves left to right); below, they are stacked
   (A over glass over B, the paper moves down, the keyboard sits under B).
   At rest the paper lies on B, sealed, and every lamp is lit: that is the page without a script and the still under
   reduced motion. Only js/sec-ypiresia.js moves the paper (one transform, from the scroll), lands the seal
   (IK.stamp) and lights the lamps in a wave.
   Under the counter (29/11 night): THE SERVICE'S PAPERS, a hand of five small pages in the Service's form, dealt
   out after the seal has landed (see «the Service's papers» below).
   Knobs (on .sec-ypiresia): --ypi-gw the glass · --ypi-pw the width of the paper (its height is A4, ×1.414) ·
   --ypi-m the margin inside the counter · --m-k the size of the type on the paper · --ypi-dw the width of the
   keyboard plate above 1100 px · --ypi-xw, --ypi-xk, --ypi-xg, --ypi-xc the five papers. */

.sec-ypiresia {
  --ypi-gw: clamp(28px, 2.2vw, 38px);
  --ypi-pw: 236px; --ypi-k: .576;        /* the paper: width, and the scale of its type (--m-k = width / 410 px) */
  --ypi-ph: calc(var(--ypi-pw) * 1.414);
  --ypi-m: clamp(18px, 2vw, 34px);
}
.ypi-in { max-width: var(--page-max, 1840px); margin-inline: auto; }

/* ─────────────── the counter ─────────────── */
.ypi-gise { position: relative; isolation: isolate; display: grid; overflow: hidden; background: #1a1a18;
  border-radius: 18px; box-shadow: 0 0 0 1px var(--ink), 0 30px 40px -30px rgba(var(--sh), .45); }

/* the two halves: a photograph each, the same grade, so that they read as one desk (placeholders) */
.ypi-side { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.ypi-ph, .ypi-ph img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.ypi-ph img { object-fit: cover; filter: grayscale(1) sepia(.16) contrast(1.06); }
.ypi-side--a .ypi-ph img { object-position: 22% 78%; filter: grayscale(1) sepia(.16) contrast(1.08) brightness(.74); }
.ypi-side--b .ypi-ph img { object-position: 46% 74%; filter: grayscale(1) sepia(.16) contrast(1.02) brightness(1.18); }
/* a breath of shade at the far edges, light towards the glass: one lamp over one counter */
.ypi-side::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.ypi-side--a::after { background: linear-gradient(90deg, rgba(17, 17, 16, .42), rgba(17, 17, 16, 0) 62%); }
.ypi-side--b::after { background: linear-gradient(270deg, rgba(17, 17, 16, .34), rgba(17, 17, 16, 0) 58%); }

/* the name on each side: a small enamel plate standing on the desk */
.ypi-name { position: absolute; z-index: 1; top: var(--ypi-m); left: var(--ypi-m); padding: 7px 10px 6px; border-radius: 4px;
  background: linear-gradient(180deg, #fff, var(--plate-lo)); color: var(--ink);
  font: 750 15px/1 var(--f-display); letter-spacing: .14em;
  box-shadow: 0 0 0 1px var(--ink), inset 0 1px 0 #fff, 0 2px 0 rgba(var(--sh), .55), 0 10px 14px -8px rgba(var(--sh), .9); }

/* the glass: a pane between the halves, seen from above, over the place where the two photographs meet (each half
   reaches half way under it). Its rail runs along it and stops at the slot, where the paper passes under the pane:
   the pane lies over the paper, so the paper is seen through the glass while it crosses. */
.ypi-glass { position: relative; z-index: 4; min-width: 0; overflow: hidden; pointer-events: none;
  background:
    linear-gradient(var(--ypi-gd, 90deg), rgba(255, 255, 255, .7) 0 1.5px, rgba(255, 255, 255, .16) 3px, rgba(255, 255, 255, .05) 50%,
      rgba(255, 255, 255, .14) calc(100% - 3px), rgba(255, 255, 255, .75) calc(100% - 1.5px)),
    linear-gradient(var(--ypi-gs, 168deg), rgba(255, 255, 255, 0) 26%, rgba(255, 255, 255, .26) 36%, rgba(255, 255, 255, 0) 44%,
      rgba(255, 255, 255, 0) 64%, rgba(255, 255, 255, .14) 70%, rgba(255, 255, 255, 0) 76%);
  box-shadow: 0 0 0 1px rgba(19, 19, 17, .7), var(--ypi-gcast, 10px 0 14px -6px) rgba(var(--sh), .75); }
.ypi-glass__rail { position: absolute; border-radius: 2px; background: linear-gradient(var(--ypi-gd, 90deg), #55554f, #1c1c1a 60%, #33332f);
  box-shadow: 0 0 0 1px var(--ink), inset 0 1px 0 rgba(255, 255, 255, .22); }

/* the paper */
.ypi-from { visibility: hidden; width: var(--ypi-pw); height: var(--ypi-ph); pointer-events: none; }
.ypi-sheet { position: relative; z-index: 2; width: var(--ypi-pw); height: var(--ypi-ph); pointer-events: none;
  transform: rotate(var(--ypi-r1, 2deg)); transform-origin: 50% 50%; }
.ypi-live .ypi-sheet { will-change: transform; }
.ypi-pg.m-page { --m-k: var(--ypi-k); position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden;
  padding-bottom: calc(24px * var(--m-k));
  box-shadow: 0 0 .6px rgba(var(--sh), .9), 0 4px 5px rgba(var(--sh), .45), 0 16px 26px -6px rgba(var(--sh), .8); }
.ypi-pg .m-page__t th:first-child { white-space: nowrap; }
/* the seal comes down: the paper gives under it for a moment (one short press, transform only) */
.ypi-pg.is-thump { animation: ypi-thump 300ms var(--stampe) 150ms both; }
@keyframes ypi-thump { 0% { transform: none; } 35% { transform: scale(.985); } 100% { transform: none; } }
/* the foot of the page: two signature lines, no words. The contractor signed at the left; the seal lands at the right. */
.ypi-pg__sign { flex: none; margin: auto 4% 0; padding-top: calc(30px * var(--m-k)); display: flex; justify-content: space-between; gap: 16%; }
.ypi-pg__line { position: relative; flex: 1; height: calc(34px * var(--m-k)); border-bottom: 1px solid #9a9a9a; }
.ypi-sig { position: absolute; left: -4%; bottom: 8%; width: 108%; height: auto; overflow: visible;
  fill: none; stroke: #111; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ypi-seal { position: absolute; left: 34%; bottom: -.08em; margin-left: -.212em; font-size: calc(var(--ypi-pw) * .5); }

/* ─────────────── the Service's keyboard ─────────────── */
.ypi-desk { --m-plate-pad: clamp(14px, 1.3vw, 20px); position: relative; z-index: 3; min-width: 0;
  --m-plate-cast: 0 26px 30px -18px rgba(var(--sh), .9); }
.ypi-lbl { margin: 2px 2px 0; }
.ypi-say { margin: 10px 2px 0; max-width: 34em; font: 600 clamp(15.5px, 1.1vw, 17px)/1.42 var(--f-text); letter-spacing: -.006em; color: var(--ink); }
.ypi-keys { --m-tray-pad: 10px; display: grid; grid-template-columns: repeat(var(--ypi-cols, 3), minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 10px 8px; margin-top: 14px; }
.ypi-keys li { display: flex; min-width: 0; }
.ypi-k { display: flex; flex-direction: column; text-decoration: none; }
.ypi-k .k__cap { flex: 1 1 auto; height: auto; min-height: 78px; gap: 8px; }
.ypi-k .k__t { line-height: 1.08; overflow-wrap: normal; hyphens: manual; }
/* lit: the lamp of every key is on (a full ink dot with its halo, as .led.is-on) */
.ypi-k .k__led { background: var(--ink); box-shadow: 0 0 0 3px rgba(19, 19, 17, .13); transition: opacity 120ms linear; }
.ypi-live .ypi-k:not(.is-lit) .k__led { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-4); }

.ypi-soon { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.ypi-soon__row { display: flex; align-items: center; gap: 14px; }
/* what comes: empty switches without their caps, in a slim tray that fades out (no count is drawn) */
.ypi-socks { flex: 1 1 auto; min-width: 0; height: 34px; display: flex; gap: 6px; padding: 5px; overflow: hidden; border-radius: 9px;
  background: var(--tray); box-shadow: inset 0 0 0 1px var(--ink), inset 0 3px 5px rgba(var(--sh), .2), 0 1px 0 #fff;
  -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 96%); mask-image: linear-gradient(90deg, #000 40%, transparent 96%); }
.ypi-socks i { position: relative; flex: 0 0 52px; border-radius: 5px; background: #d9d6cc;
  box-shadow: inset 0 0 0 1px rgba(19, 19, 17, .32), inset 0 2px 3px rgba(var(--sh), .28); }
/* the switch left without its cap: a small square housing with its stem */
.ypi-socks i::before { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 3px;
  background: #cbc8bd; box-shadow: inset 0 0 0 1.5px var(--ink-4), 0 1px 0 rgba(255, 255, 255, .6); }
.ypi-socks i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 1px;
  background: var(--ink-4); }
/* 1/12: what comes, named: the bill and the Recapitulative table, as keys not lit yet (sunk, veiled, no link) */
.ypi-keys--soon { --ypi-cols: 3; margin-top: 12px; }
.ypi-ks { display: flex; flex-direction: column; cursor: default; }
.ypi-ks .k__cap { flex: 1 1 auto; height: auto; min-height: 70px; gap: 8px; }
.ypi-ks .k__t { line-height: 1.08; overflow-wrap: normal; hyphens: manual; }
.ypi-ks.k.is-off .k__cap::after { opacity: .56; }
.ypi-more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; padding: 0 2px;
  font: 620 16px/1.2 var(--f-text); color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .ypi-more:hover { text-decoration-thickness: 2px; }
}
.ypi-in .ypi-small { margin-top: 16px; }

/* ─────────────── the Service's papers: a hand of five, under the counter ───────────────
   Each is a small page in the form the Service expects (our HTML, the material .m-page), with a caption of real
   text under it. Papers, not keys: no lamp, no link, no button. The paper itself is a picture (aria-hidden).
   Knobs (on .sec-ypiresia): --ypi-xw the width of one paper (its height is A4, ×1.414) and --ypi-xk the scale of its
   type (= --ypi-xw / 410 px), --ypi-xg the gap between two places, --ypi-xc the size of a caption. */
.ypi-out { margin-top: clamp(26px, 2.4vw, 40px); }
.ypi-out__head { min-width: 0; }
.ypi-hand { isolation: isolate; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--ypi-xg, 14px);
  margin: 0; padding: 0; list-style: none; }
.ypi-xp { display: flex; justify-content: center; min-width: 0; }
.ypi-xp__f { display: flex; flex-direction: column; align-items: center; width: 100%; min-width: 0; margin: 0; }
.ypi-xp__cap { width: 100%; margin-top: 11px; text-align: center; font: 600 var(--ypi-xc, 15px)/1.3 var(--f-text); letter-spacing: -.004em;
  color: var(--ink); overflow-wrap: normal; hyphens: manual; text-wrap: balance; }
/* the paper: a page of the Service, small. Every length × --m-k, as the material does */
.ypi-xp__pg.m-page { --m-k: var(--ypi-xk, .366); flex: none; display: flex; flex-direction: column; overflow: hidden;
  width: var(--ypi-xw, 150px); height: calc(var(--ypi-xw, 150px) * 1.414);
  padding: calc(30px * var(--m-k)) calc(26px * var(--m-k)) calc(22px * var(--m-k));
  transform: rotate(var(--ypi-xr, 0deg)); }
.ypi-xp__pg .m-page__head { flex-direction: column; gap: calc(6px * var(--m-k)); font-size: calc(13.5px * var(--m-k)); line-height: 1.36; }
.ypi-xp__pg .m-page__l, .ypi-xp__pg .m-page__r { max-width: none; text-align: left; }
.ypi-xp__pg .m-page__title { margin: calc(20px * var(--m-k)) 0 calc(14px * var(--m-k)); font-size: calc(28px * var(--m-k)); line-height: 1.12; }
.ypi-xp__pg .ypi-xp__u { text-decoration: underline; text-decoration-thickness: calc(2px * var(--m-k)); text-underline-offset: calc(4px * var(--m-k)); }
.ypi-xp__pg .ypi-xp__i { font-style: italic; }
.ypi-xp__pg .m-page__t { font-size: calc(12.5px * var(--m-k)); }
.ypi-xp__pg .m-page__t th, .ypi-xp__pg .m-page__t td { border-width: 1px; padding: calc(4px * var(--m-k)) calc(5px * var(--m-k)); line-height: 1.16; }
.ypi-xp__pg .m-page__t tr.m td, .ypi-xp__pg .m-page__t tr.s td { border-top-width: .75px; }
.ypi-xp__pg .m-page__t tr.m td { border-bottom-width: .75px; }
.ypi-xp__pg .m-page__t tr.m td.l { padding-left: calc(9px * var(--m-k)); }
.ypi-xp__pg .m-page__t .g td { font-size: calc(12.5px * var(--m-k)); text-align: left; }
.ypi-xp__pg .m-page__t th:first-child { white-space: nowrap; }
/* a line of text, drawn as a grey bar (the schematic papers' line, css/demo.css .d-l): the words are not the point */
.ypi-xl { display: block; height: calc(5.5px * var(--m-k)); margin-top: calc(8.5px * var(--m-k)); border-radius: 1px; background: #c6c5bd; }
.ypi-xl--m { width: 82%; }
.ypi-xl--s { width: 56%; }
.ypi-xl--in { margin-left: 9%; }
.ypi-xl--h { width: 38%; margin-top: calc(15px * var(--m-k)); background: #000; }          /* a heading in bold */
.ypi-xl--c { margin-inline: auto; width: 34%; }                                           /* a centred heading */
.ypi-xl--li { margin-left: 11%; }
.ypi-xl--to { width: 40%; margin-left: auto; background: #000; }                          /* «Προς»: the addressee, at the right */
.ypi-xl--to + .ypi-xl--to { width: 30%; }
.ypi-xl--li { position: relative; }
.ypi-xl--li::before { content: ""; position: absolute; left: calc(-11px * var(--m-k)); top: 0; width: calc(5px * var(--m-k)); height: 100%; background: #000; }   /* its number */
.ypi-xp__pg td .ypi-xl, .ypi-xp__pg th .ypi-xl { width: 70%; margin: 0 auto; }
.ypi-xp__pg td.l .ypi-xl { margin: 0; width: 90%; }
.ypi-xp__pg td.l .ypi-xl--m { width: 70%; }
.ypi-xp__pg td.l .ypi-xl--s { width: 50%; }
.ypi-xp__pg .ypi-xl--k { background: #000; }                                              /* a sum in bold */
/* the foot: a signature line (two on the contract), a scribble, no words */
.ypi-xp__sign { flex: none; display: flex; justify-content: flex-end; margin: auto 2% 0; padding-top: calc(16px * var(--m-k)); }
.ypi-xp__sign--two { justify-content: space-between; }
.ypi-xp__line { position: relative; flex: 0 0 44%; height: calc(30px * var(--m-k)); border-bottom: 1px solid #9a9a9a; }

/* the hand lies a little askew, as papers do on a desk */
.ypi-xp:nth-child(1) { --ypi-xr: -2deg;   --ypi-pr: -2deg;   z-index: 5; }
.ypi-xp:nth-child(2) { --ypi-xr: 1.4deg;  --ypi-pr: 1.6deg;  --ypi-jx: 3px;  --ypi-jy: 2px;  --ypi-n: 0; z-index: 4; }
.ypi-xp:nth-child(3) { --ypi-xr: -.8deg;  --ypi-pr: -4deg;   --ypi-jx: -3px; --ypi-jy: 4px;  --ypi-n: 1; z-index: 3; }
.ypi-xp:nth-child(4) { --ypi-xr: 1.8deg;  --ypi-pr: 3.4deg;  --ypi-jx: 5px;  --ypi-jy: -1px; --ypi-n: 2; z-index: 2; }
.ypi-xp:nth-child(5) { --ypi-xr: -1.4deg; --ypi-pr: -.6deg;  --ypi-jx: -1px; --ypi-jy: 6px;  --ypi-n: 3; z-index: 1; }
/* with motion only (js/sec-ypiresia.js sets .ypi-live): until the hand is dealt the five lie in a pile on the first
   place, the first on top (--ypi-px/--ypi-py = the way from its place to the first, measured by the script); then
   they are dealt out one after the other, each sliding from under the one before (620 ms --out, 110 ms apart, +240 ms,
   as the sheets of the stage), and each caption shows when its paper arrives (180 ms linear). The pile is gathered
   only out of sight, without motion. */
.ypi-live .ypi-hand:not(.is-dealt) .ypi-xp__pg {
  transform: translate(calc(var(--ypi-px, 0px) + var(--ypi-jx, 0px)), calc(var(--ypi-py, 0px) + var(--ypi-jy, 0px))) rotate(var(--ypi-pr, 0deg)); }
.ypi-live .ypi-hand:not(.is-dealt) .ypi-xp:not(:first-child) .ypi-xp__cap { opacity: 0; }
.ypi-live .ypi-hand.is-dealt .ypi-xp__pg { transition: transform 620ms var(--out) calc(var(--ypi-n, 0) * 110ms + 240ms); }
.ypi-live .ypi-hand.is-dealt .ypi-xp__cap { transition: opacity 180ms linear calc(var(--ypi-n, 0) * 110ms + 560ms); }
.ypi-hand.is-measure .ypi-xp__pg { transform: none !important; transition: none !important; }

/* ─────────────── side by side: above 1100 px ─────────────── */
@media (min-width: 1101px) {
  .ypi-gise { --ypi-gd: 90deg;
    grid-template-columns: minmax(0, 1fr) var(--ypi-gw) minmax(calc(var(--ypi-pw) + 2 * var(--ypi-m)), 1.05fr) auto;
    grid-template-rows: minmax(calc(var(--ypi-ph) + 2 * var(--ypi-m) + 70px), auto); }
  .ypi-side--a { grid-area: 1 / 1 / 2 / 2; margin-right: calc(var(--ypi-gw) / -2); }
  .ypi-glass { grid-area: 1 / 2 / 2 / 3; }
  .ypi-side--b { grid-area: 1 / 3 / 2 / 5; margin-left: calc(var(--ypi-gw) / -2); }
  .ypi-from { grid-area: 1 / 1 / 2 / 2; place-self: center; }
  .ypi-sheet { grid-area: 1 / 3 / 2 / 4; place-self: center; }
  .ypi-desk { grid-area: 1 / 4 / 2 / 5; align-self: center; width: var(--ypi-dw); margin: var(--ypi-m) var(--ypi-m) var(--ypi-m) 0; }
  /* the rail: along the pane, cut at the slot (the paper's height and a little more) */
  .ypi-glass__rail { left: 50%; width: 6px; margin-left: -3px; top: -4px; bottom: calc(50% + var(--ypi-ph) / 2 + 16px); }
  .ypi-glass__rail--2 { top: calc(50% + var(--ypi-ph) / 2 + 16px); bottom: -4px; }
  .sec-ypiresia { --ypi-r0: -5deg; --ypi-r1: 2deg; --ypi-dw: clamp(420px, 37vw, 620px);
    --ypi-xw: 150px; --ypi-xk: .366; --ypi-xg: 20px; --ypi-xc: 15px; }
  /* the papers: the heading under the contractor's side (to the glass), the hand under the Service's side. The first
     column is exactly the counter's A + glass: A = 1 fr of what the glass and the keyboard (--ypi-dw + its margin)
     leave, B = 1.05 fr (the counter's own grid, above). */
  .ypi-out { display: grid; align-items: start;
    grid-template-columns: calc((100% - var(--ypi-gw) - var(--ypi-dw) - var(--ypi-m)) / 2.05 + var(--ypi-gw)) minmax(0, 1fr); }
  .ypi-out__head { padding: 2px clamp(20px, 2.4vw, 44px) 0 0; }
  .ypi-out__head .ypi-say { margin-top: 12px; }
  .ypi-hand { padding: 6px var(--ypi-m) 0; }
}
@media (min-width: 1101px) and (max-width: 1239px) { .sec-ypiresia { --ypi-pw: 190px; --ypi-k: .463; } }
@media (min-width: 1240px) and (max-width: 1399px) { .sec-ypiresia { --ypi-pw: 212px; --ypi-k: .517; } }
@media (min-width: 1700px) { .sec-ypiresia { --ypi-pw: 262px; --ypi-k: .639; } }
@media (min-width: 1101px) and (max-width: 1239px) {
  .sec-ypiresia { --ypi-dw: clamp(380px, 36vw, 440px); --ypi-xw: 112px; --ypi-xk: .273; --ypi-xg: 12px; --ypi-xc: 13px; }
  .ypi-keys { --ypi-cols: 2; }
}
@media (min-width: 1240px) and (max-width: 1399px) { .sec-ypiresia { --ypi-xw: 132px; --ypi-xk: .322; --ypi-xg: 16px; --ypi-xc: 14px; } }
@media (min-width: 1700px) { .sec-ypiresia { --ypi-xw: 176px; --ypi-xk: .429; --ypi-xg: 24px; --ypi-xc: 15.5px; } }

/* ─────────────── stacked: 1100 px and below (the heads stack there too) ─────────────── */
@media (max-width: 1100px) {
  .sec-ypiresia { --ypi-pw: 220px; --ypi-k: .537; --ypi-m: 16px; --ypi-r0: -4deg; --ypi-r1: 3deg; }
  .ypi-gise { --ypi-gd: 180deg; --ypi-gs: 100deg; --ypi-gcast: 0 10px 14px -6px; --ypi-over: 34px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: calc(var(--ypi-ph) + 2 * var(--ypi-m) + 40px) var(--ypi-gw) calc(var(--ypi-ph) + 2 * var(--ypi-m) + 40px + var(--ypi-over)) auto;
    margin-inline: calc(0px - var(--page-gut, var(--pad)));
    overflow: visible; background: none; border-radius: 0; box-shadow: none; }
  .ypi-side--a { grid-area: 1 / 1; margin-bottom: calc(var(--ypi-gw) / -2); box-shadow: inset 0 1px 0 var(--ink); }
  .ypi-glass { grid-area: 2 / 1; }
  .ypi-side--b { grid-area: 3 / 1; margin-top: calc(var(--ypi-gw) / -2); }
  /* the paper starts left of the middle on A and lands right of the middle on B: it crosses the slot on a diagonal */
  .ypi-from { grid-area: 1 / 1; align-self: center; justify-self: center; margin-right: 22%; }
  .ypi-sheet { grid-area: 3 / 1; align-self: start; justify-self: center; margin-left: 22%; margin-top: calc(var(--ypi-m) + 24px); }
  .ypi-desk { grid-area: 4 / 1; justify-self: center; width: min(640px, calc(100% - 2 * var(--pad))); margin-top: calc(0px - var(--ypi-over)); }
  .ypi-glass__rail { top: 50%; height: 6px; margin-top: -3px; left: -4px; right: calc(50% + var(--ypi-pw) / 2 + 30px); }
  .ypi-glass__rail--2 { left: calc(50% + var(--ypi-pw) / 2 + 30px); right: -4px; }
  .ypi-side--a::after { background: linear-gradient(180deg, rgba(17, 17, 16, .42), rgba(17, 17, 16, 0) 70%); }
  .ypi-side--b::after { background: linear-gradient(0deg, rgba(17, 17, 16, .5), rgba(17, 17, 16, 0) 60%); }
  .ypi-side--a .ypi-ph img { object-position: 30% 70%; }
  .ypi-side--b .ypi-ph img { object-position: 40% 72%; }
  .ypi-name { left: auto; right: var(--pad); }
  .ypi-side--b .ypi-name { right: auto; left: var(--pad); }
  /* the papers: under the keyboard, as wide as it, the five in one row */
  .sec-ypiresia { --ypi-xw: 104px; --ypi-xk: .254; --ypi-xg: 10px; --ypi-xc: 13px; }
  .ypi-out { width: min(640px, 100%); margin: 30px auto 0; }
  .ypi-hand { margin-top: 18px; }
}
@media (max-width: 900px) { .sec-ypiresia { --ypi-xw: 96px; --ypi-xk: .234; --ypi-xc: 12px; } }
@media (max-width: 640px) {
  .sec-ypiresia { --ypi-pw: 180px; --ypi-k: .439; --ypi-xw: 108px; --ypi-xk: .263; --ypi-xc: 14px; }
  .ypi-keys { --ypi-cols: 2; }
  .ypi-k .k__cap { min-height: 82px; }
  /* the papers: two to a row, the fifth in the middle */
  .ypi-out { margin-top: 26px; }
  .ypi-hand { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 12px; margin-top: 16px; }
  .ypi-xp { flex: 0 0 calc(50% - 6px); }
  .ypi-xp__cap { margin-top: 9px; }
}
@media (max-width: 380px) {
  .sec-ypiresia { --ypi-pw: 166px; --ypi-k: .405; --ypi-xw: 100px; --ypi-xk: .244; }
  .ypi-keys { gap: 8px 6px; }
  .ypi-k .k__t { font-size: 14px; letter-spacing: 0; }
}
