/* Arcord Web Studio, casi studio (studio-96/). Il resto del sito (header, footer, superficie, contatti) viene da
   style.css; l'apertura sta nel CSS critico della pagina. Qui: le sezioni, la scena ferma (montaggio, varianti,
   fondello) e i telefoni. Nelle scene si muovono solo transform e opacity, scritti da case.js. */

/* Sections: the same rhythm as the home, the same 12 columns */
.cs-s{padding-block:var(--sec2);row-gap:var(--s4);align-items:start}
.cs-l{grid-column:1/span 3;padding-top:.6em}
.cs-idea{--body:var(--ink)}  /* next to the night: through the variable, so the tx-* steps still win */
.cs-big{grid-column:4/span 9;font-size:var(--fs-l);line-height:1.04;font-weight:500;letter-spacing:-.038em;font-stretch:88%;text-wrap:pretty}
.cs-p{font-size:var(--fs-lead);line-height:1.35;letter-spacing:-.012em;color:var(--body);max-width:34em;text-wrap:pretty}
.cs-narrow{grid-column:4/span 6}
.cs-side .label,.cs-cap .label{margin-bottom:var(--s3)}

/* The still scene: the section is tall, its stage stays on screen while you scroll through it. One movement on the
   night: the watch put together, its variants, then it turns over to the caseback. */
.cs-lay{height:calc(var(--vh) * 590)}
.cs-st{position:sticky;top:0;height:calc(var(--vh) * 100);align-items:center;padding-top:var(--hd)}
.cs-side{grid-column:1/span 3;align-self:center}
.cs-st .cs-p{font-size:var(--fs-body);line-height:1.5}
.cs-lay:not(.tx-l0){color:var(--on-night);--body:var(--on-night);--muted:var(--on-night-muted);--focus:var(--on-night)}
html:not(.js) .cs-lay{background:var(--night)}
/* the watch frame: big (half the width, the screen's height); its square is the configurator's frame, the watch
   itself is the middle 62% of it. Desktop: centred on the page, the text stays in the left columns */
.wl-box{grid-row:1;grid-column:1/-1;justify-self:center;--W:min(50vw,calc(var(--vh) * 100 - var(--hd) - 64px))}
@media (min-width:961px){.cs-st>.cs-side{grid-row:1}}  /* the text stays on the left of the centred watch */
.wl{position:relative;display:block;width:var(--W);aspect-ratio:1;padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer;perspective:1800px;pointer-events:none;-webkit-tap-highlight-color:transparent}
.wl .ly-i{pointer-events:auto}
.wl:focus-visible{outline-offset:-12%}
.wl-r{position:absolute;inset:0;display:block;transform-style:preserve-3d;transform-origin:50.0087% 44.7562%;will-change:transform}
.wl-f,.wl-b{position:absolute;inset:0;display:block;-webkit-backface-visibility:hidden;backface-visibility:hidden}
.wl-b{transform:rotateY(180deg);opacity:0}  /* shown by case.js only when it faces (see layPose) */
.ly{position:absolute;inset:0;display:block;transform-origin:50.0087% 44.7562%;will-change:transform,opacity}
.ly-i{position:absolute;display:block;margin:0;will-change:opacity}
.ly-i img{display:block;width:100%;height:auto}
.ly .ly-i+.ly-i{opacity:0}
.wl-rot{transform-origin:49.9023% 47.8516%;will-change:transform}
/* the name of what comes in or changes: one at a time, next to it, at the size of a section title */
.wl-ns{position:absolute;left:calc(82.95% + var(--s5));top:0;bottom:0;width:30vw;pointer-events:none}
.ly-n{position:absolute;left:0;right:0;top:var(--y);height:0;display:flex;align-items:center;opacity:0;will-change:transform,opacity}
.ly-n>span{display:block;overflow:hidden;padding:.08em 0 .16em;margin:-.08em 0 -.16em;font-size:var(--fs-m);line-height:.95;font-weight:500;letter-spacing:-.045em;font-stretch:88%;text-align:left;text-wrap:balance}
/* each name changes like every title of the site: the old one leaves upwards through its mask, the new one rises */
.ly-n>span>i{display:block;font-style:normal;transform:translateY(120%);will-change:transform}

/* The configurator on the phone, two moments side by side: each phone with its words under it, the second a step
   lower, so the two read as one composition and not as two screens */
.cs-pair{align-items:start;visibility:visible}
.cs-fig{display:flex;flex-direction:column;align-items:flex-start;gap:var(--s5)}
.cs-fig:first-child{grid-column:2/span 4}
.cs-fig:last-child{grid-column:8/span 4;margin-top:var(--s8)}
.cs-ph2{width:min(64%,320px);margin-left:var(--s3)}  /* never from --vh: it is far below the opening, and a measure that follows the height moved it */
.cs-cap .cs-p{font-size:var(--fs-body);line-height:1.5;color:var(--ink);max-width:30em}
.ph-v{pointer-events:none}

/* The close: the question, big, on the night, and the way to the form */
/* a whole screen of night (the fixed 100svh of --vh): the footer is uncovered only past it; the question and the
   way on composed in the middle of the screen, under the header */
.ct.cs-end{display:flex;flex-direction:column;justify-content:center;min-height:calc(var(--vh) * 100);padding-block:calc(var(--hd) + var(--s5)) var(--s6)}
.cs-end-in{width:100%;row-gap:var(--s5)}
.ct .cs-q{grid-column:1/span 10;font-size:var(--fs-l);line-height:1;letter-spacing:-.045em;font-stretch:88%;font-weight:500;text-wrap:balance}
.cs-go{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:var(--s3) var(--s5)}
.cs-go .u{display:inline-flex;align-items:center;gap:var(--s1);min-height:44px}
/* the two text links stay together: on a phone they go under the button side by side */
.cs-links{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s3) var(--s5)}

/* text on the change to night follows the ground (same steps as the home, see .tx-* in style.css) */
.cs-s.tx-l1,.cs-lay.tx-l1{color:#000;--body:#000;--muted:#000}
.cs-s.tx-d1,.cs-lay.tx-d1{color:#fff;--body:#fff;--muted:#fff}
.cs-s.tx-d0{color:var(--on-night);--body:var(--on-night);--muted:var(--on-night-muted)}

@media (max-width:960px){
  .cs-l,.cs-big,.cs-narrow{grid-column:1/-1}
  .cs-l{padding-top:0}
  /* phones: the words first, in the page; they scroll away, then only the watch (big, centred) and its name stay */
  .cs-lay{height:auto}
  .cs-st{position:relative;display:block;height:auto;padding:var(--s7) var(--g) 0}
  /* the stage's run: inside the content box (a sticky element never moves into its parent's padding) */
  .cs-st::after{content:"";display:block;height:calc(var(--vh) * 520)}
  .cs-side{align-self:auto}
  .cs-st .cs-p{line-height:1.45}
  /* the watch centred optically: the dial's middle (the hands' pivot, 50.01% across the frame) on the axis of the
     screen and of the name, not the box of the case (its crown juts out on the right, the box's middle is 52.105%):
     85% of the width for the case, less if the height asks. The name under it, as wide as the page, centred, on two lines
     if it needs them */
  .wl-box{position:sticky;top:0;height:calc(var(--vh) * 100);margin:0;justify-self:stretch;width:100%;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:var(--hd) 0 calc(var(--s4) + 2 * .95 * var(--fs-m) + var(--s3) + env(safe-area-inset-bottom,0px));--W:min(calc(100vw * .85 / .6168),calc(var(--vh) * 100 - var(--hd) - var(--s4) * 2 - 2 * .95 * var(--fs-m) - var(--s3) * 2 - env(safe-area-inset-bottom,0px)))}
  .wl{flex:none;margin-left:calc(50% - var(--W) * .500087)}
  .wl-ns{left:calc(50.0087% - 50vw + var(--g));width:calc(100vw - 2 * var(--g));top:calc(100% + var(--s4));bottom:auto}
  .ly-n{top:0;align-items:flex-start;justify-content:center}
  .ly-n>span{text-align:center}
  .cs-pair{row-gap:var(--s7)}
  .cs-fig:first-child,.cs-fig:last-child{grid-column:1/-1;margin-top:0;align-items:stretch}
  .cs-ph2{align-self:center;margin-left:0;width:min(64vw,340px)}
  .ct .cs-q{grid-column:1/-1}
}

/* tablets: still wide enough for the two phones side by side */
@media (min-width:701px) and (max-width:960px){
  .cs-fig:first-child{grid-column:1/span 2}  /* the grid has 4 columns below 960 */
  .cs-fig:last-child{grid-column:3/span 2;margin-top:var(--s8)}
  .cs-ph2{width:min(70%,300px)}
}

/* Reduced motion (and no JS): no still scene, the watch complete and still with the names of its pieces in a column
   next to it (under it on phones); a tap still turns it over */
@media (prefers-reduced-motion:reduce){
  .cs-lay{height:auto}
  .cs-st{position:relative;height:auto;padding-block:var(--sec)}
  .wl-box{position:relative;height:auto;padding:0 0 calc(var(--s5) * 3)}
  .cs-st::after{display:none}
  .wl-ns{display:flex;flex-direction:column;justify-content:center;gap:var(--s1)}
  .ly-n{position:static;height:auto;opacity:1}
  .ly-n>span>i{transform:none}
  .ly-v{display:none}
}
html:not(.js) .cs-lay{height:auto}
html:not(.js) .cs-st{position:relative;height:auto;padding-block:var(--sec)}
html:not(.js) .wl-box{position:relative;height:auto}
html:not(.js) .cs-st::after{display:none}
html:not(.js) .wl-ns{display:flex;flex-direction:column;justify-content:center;gap:var(--s1)}
html:not(.js) .ly-n{position:static;height:auto;opacity:1}
html:not(.js) .ly-n>span>i{transform:none}
html:not(.js) .ly-v{display:none}

/* ===== Aromi e Aromi (aromi-e-aromi/) ===== */
/* The front: the label on its own line, then three rows on the page's twelve columns, alternating and never past the
   grid: "La scheda" words 2–6 and phone 8–11 (as the Method), "Quante gocce?" centered, words and calculator 3–10, no
   phone (ours is the one to try), "Privato e professionale" mirrored, phone 2–5 and words 7–11. Same padding above and
   below each row, words centered on the phone. A rule above every row draws itself as the row comes in */
.cs-front .cs-l{grid-column:1/-1}
.cs-rows{grid-column:1/-1;display:flex;flex-direction:column}
.cs-row{position:relative;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--gap);row-gap:var(--s4);padding-block:var(--s7);align-items:center}
.cs-row:first-child{padding-top:var(--s2)}
.cs-row+.cs-row::before{content:"";position:absolute;left:0;right:0;top:0;height:1px;background:var(--rule);transform-origin:0 50%;transition:transform var(--t4) var(--ease) .1s}
.js .cs-row.rv.pre::before{transform:scaleX(0)}
.cs-rt{grid-column:2/span 5;display:flex;flex-direction:column;gap:var(--s3)}
.cs-h3{font-size:var(--fs-m);font-weight:500;letter-spacing:-.04em;line-height:1;font-stretch:88%}
.cs-rt .cs-p{font-size:var(--fs-body);line-height:1.5;color:var(--body);max-width:36em}
.cs-rp{grid-column:8/span 4;visibility:visible;display:flex;justify-content:center}
.cs-rp .cs-ph2{width:100%;max-width:300px;margin:0}
#gocce .cs-rt{grid-column:3/span 8}
#gocce .dz{max-width:none}
#formati .cs-rp{grid-column:2/span 4;grid-row:1}
#formati .cs-rt{grid-column:7/span 5;grid-row:1}
/* the dosage calculator: the store's own numbers, in the site's form language (an answer underlined by a thread) */
.dz{display:flex;flex-direction:column;gap:var(--s4);margin:var(--s2) 0 0;padding:0;border:0;max-width:36em}
.dz-f{margin:0;padding:0;border:0;min-width:0}
.dz-l{display:block;font-size:var(--fs-label);color:var(--muted);margin:0 0 var(--s2);padding:0}
.dz-uses{display:flex;flex-wrap:wrap;gap:var(--s1) var(--s4)}
.dz-u{position:relative;display:inline-flex;align-items:center;min-height:44px;font-size:var(--fs-lead);letter-spacing:-.012em;cursor:pointer;color:var(--muted);transition:color var(--t1) var(--ease);-webkit-tap-highlight-color:transparent}
.dz-u input{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
.dz-u span{position:relative;display:inline-block;padding-bottom:3px}
.dz-u span::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:currentColor;transform:scaleX(0);transform-origin:0 50%;transition:transform var(--t2) var(--ease)}
.dz-u:has(input:checked){color:inherit}
.dz-u:has(input:checked) span::after{transform:none}
.dz-u:has(input:focus-visible) span{outline:2px solid var(--focus);outline-offset:6px;border-radius:4px}
@media (hover:hover){.dz-u:hover{color:inherit}}
.dz-q{display:grid;grid-template-columns:1fr auto;align-items:baseline;column-gap:var(--s3)}
.dz-q .dz-l{grid-column:1}
.dz-qv{grid-column:2;grid-row:1;font-size:var(--fs-lead);letter-spacing:-.012em;font-variant-numeric:tabular-nums}
.dz-r{grid-column:1/-1;width:100%;height:44px;margin:0;background:none;-webkit-appearance:none;appearance:none;cursor:pointer}
.dz-r::-webkit-slider-runnable-track{height:1px;background:var(--rule)}
.dz-r::-moz-range-track{height:1px;background:var(--rule)}
.dz-r::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:20px;height:20px;margin-top:-9.5px;border-radius:50%;background:currentColor;border:0;transition:transform var(--t2) var(--ease)}
.dz-r::-moz-range-thumb{width:20px;height:20px;border-radius:50%;background:currentColor;border:0}
.dz-r:active::-webkit-slider-thumb{transform:scale(1.2)}
.dz-r:focus-visible{outline:none}
.dz-r:focus-visible::-webkit-slider-thumb{outline:2px solid var(--focus);outline-offset:4px}
.dz-r:focus-visible::-moz-range-thumb{outline:2px solid var(--focus);outline-offset:4px}
.dz-out{display:flex;flex-direction:column;gap:var(--s2)}
.dz-res{display:flex;align-items:baseline;gap:var(--s2);line-height:1}
.dz-n{font-size:var(--fs-l);font-weight:500;letter-spacing:-.045em;font-stretch:88%;font-variant-numeric:tabular-nums;min-width:2ch}
.dz-w{font-size:var(--fs-lead);letter-spacing:-.012em}
.dz-g{font-size:var(--fs-label);color:var(--muted);margin-left:auto;font-variant-numeric:tabular-nums}
/* the bar runs to the maximum; the recommended dose fills it part way (transform only) */
.dz-bar{position:relative;height:2px;background:var(--rule);border-radius:2px;overflow:hidden}
.dz-fill{position:absolute;inset:0;background:currentColor;transform-origin:0 50%;transition:transform var(--t3) var(--ease);will-change:transform}
.dz-max{font-size:var(--fs-label);color:var(--muted);font-variant-numeric:tabular-nums}
.dz-max b{font-weight:500;color:inherit}
/* the account switch: two answers, one chosen; the trade sizes appear with it, rising from their masks */
.acct{display:flex;flex-direction:column;gap:var(--s3);margin-top:var(--s2)}
.seg{display:flex;flex-wrap:wrap;gap:var(--s1) var(--s4);margin:0;padding:0;border:0;min-width:0}
.seg-o{position:relative;display:inline-flex;align-items:center;min-height:44px;font-size:var(--fs-lead);letter-spacing:-.012em;color:var(--muted);cursor:pointer;transition:color var(--t1) var(--ease);-webkit-tap-highlight-color:transparent}
.seg-o input{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
.seg-o span{position:relative;display:inline-block;padding-bottom:3px}
.seg-o span::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:currentColor;transform:scaleX(0);transform-origin:0 50%;transition:transform var(--t2) var(--ease)}
.seg-o:has(input:checked){color:inherit}
.seg-o:has(input:checked) span::after{transform:none}
.seg-o:has(input:focus-visible) span{outline:2px solid var(--focus);outline-offset:6px;border-radius:4px}
@media (hover:hover){.seg-o:hover{color:inherit}}
.fmt-l{margin:0 0 var(--s1)}
.fmt{display:flex;flex-wrap:wrap;gap:var(--s1) var(--s3);list-style:none;margin:0;padding:0;font-size:var(--fs-m);font-weight:500;letter-spacing:-.04em;line-height:1;font-stretch:88%;font-variant-numeric:tabular-nums}
.fmt li{display:block;overflow:hidden;padding:.08em 0 .14em;margin:-.08em 0 -.14em}
.fmt li span{display:block}
.fmt li.fmt-pro{display:none}
.acct.pro .fmt li.fmt-pro,.acct:has(input[value="pro"]:checked) .fmt li.fmt-pro{display:block}
.acct.pro .fmt-pro span,.acct:has(input[value="pro"]:checked) .fmt-pro span{animation:fmtUp var(--t3) var(--ease) both}
.fmt-pro:nth-child(8) span{animation-delay:.06s!important}.fmt-pro:nth-child(9) span{animation-delay:.12s!important}
@keyframes fmtUp{from{transform:translateY(115%)}}

/* The back: the sentence on the night, then Arcord's thread: a spacer in the flow (column 4, the sentence's edge) holding
   an SVG that case.js sizes from under the sentence to the first stop of the timeline (left margin, inside the stage's
   top), bent like a hanging thread (straight on phones, where both are on the margin) and drawn by the scroll from the
   start of the night until the scene sticks (stroke-dashoffset, pathLength 1) */
.cs-back{row-gap:var(--s4);padding-bottom:0}
.cs-wire{grid-column:4/span 1;justify-self:start;position:relative;display:block;width:1px;height:calc(var(--s8) + var(--s6));margin-left:1px}
.cs-wire svg{position:absolute;top:0;right:0;width:1px;height:100%;overflow:visible;z-index:1;display:block}
.cs-wire path{fill:none;stroke:var(--on-night);stroke-width:1;stroke-linecap:round;stroke-dasharray:1 2;stroke-dashoffset:1;opacity:.6}
.hb-sc{grid-column:1/-1;height:calc(var(--vh) * 620);margin-inline:calc(var(--g) * -1)}
/* a transparent gradient changes nothing on screen: it only stops axe from reading the paper under the sticky scene as its ground when the page is checked from the top (the scene is read on night: the scene checks measure it there) */
.hb-st{background-image:linear-gradient(transparent,transparent)}
.hb-st{position:sticky;top:0;height:max(calc(var(--vh) * 100),100lvh);display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-template-rows:auto 1fr;column-gap:var(--gap);row-gap:var(--s5);align-content:start;padding:calc(var(--hd) + var(--s4)) max(var(--g),env(safe-area-inset-right,0px)) calc(var(--s4) + env(safe-area-inset-bottom,0px)) max(var(--g),env(safe-area-inset-left,0px))}
/* the thread across the top: five stops, the order travelling from one to the next; the line fills behind it */
/* the thread spans the grid: five stops at 0, 25, 50, 75 and 100% of the row (--k, written in the markup), the names
   centered under their stop, the first and the last flush with the margins; on phones only the current name, with its count */
.hb-th{position:relative;grid-column:1/-1;padding-top:var(--s3);min-height:calc(var(--s3) + 1.4em)}
.hb-line,.hb-fill{position:absolute;left:0;right:0;top:0;height:1px;background:var(--on-night)}
.hb-line{opacity:.22}
.hb-fill{transform:scaleX(0);transform-origin:0 50%;will-change:transform}
.hb-p{position:absolute;left:calc(var(--k) * 100%);top:-2.5px;width:5px;height:5px;margin-left:-2.5px;border-radius:50%;background:var(--on-night);opacity:.35}
.hb-dot{position:absolute;left:0;top:-3.5px;width:8px;height:8px;margin-left:-4px;border-radius:50%;background:var(--on-night);will-change:transform}
.hb-n{position:absolute;top:var(--s3);left:calc(var(--k) * 100%);transform:translateX(-50%);white-space:nowrap;font-size:var(--fs-label);font-weight:500;color:var(--on-night-muted);transition:color var(--t2) var(--ease)}
.hb-n:first-of-type{left:0;transform:none}
.hb-n:last-of-type{left:auto;right:0;transform:none}
.hb-n.on{color:var(--on-night)}
.hb-n b{font-weight:500}
.hb-n em{display:none;font-style:normal;color:var(--on-night-muted);margin-left:.6em}
/* the words of each stage, stacked in one place: the name rises from its mask, the line fades (as the Method's steps) */
.hb-tx{grid-column:1/span 5;display:grid;align-self:center}
.hb-s{grid-area:1/1;opacity:0;will-change:opacity}
.hb-h{margin:0 0 var(--s3);font-size:var(--fs-m);font-weight:500;letter-spacing:-.04em;line-height:.98;font-stretch:88%;text-wrap:balance}
.hb-h>span{display:block;overflow:hidden;padding:.08em 0 .16em;margin:-.08em 0 -.16em}
.hb-h>span>i{display:block;font-style:normal;transform:translateY(120%);will-change:transform}
.hb-s .cs-p{font-size:var(--fs-body);line-height:1.5;color:var(--on-night-muted);max-width:30em}
/* the screen of Aromi Hub: the six pictures stacked, traded by opacity; a red line sweeps it when the scanner reads */
/* the screen of Aromi Hub: the pages rendered 440px wide (readable on a phone) on an 11:15 canvas, cut to the content */
.hb-mon{position:relative;grid-column:7/-1;align-self:center;justify-self:center;width:min(100%,calc((var(--vh) * 100 - var(--hd) - 160px) * 11 / 15));aspect-ratio:11/15;border-radius:10px;overflow:hidden;background:#F7F6F2;border:1px solid var(--night-edge);box-shadow:0 40px 80px rgba(0,0,0,.45)}
.hb-i{position:absolute;inset:0;display:block;opacity:0;will-change:opacity}
.hb-i:first-child{opacity:1}
.hb-i img{display:block;width:100%;height:100%;object-fit:cover;object-position:top}

/* The close: the numbers, the technical line, the ways on, the next project */
.cs-nums{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:var(--gap);row-gap:var(--s4);list-style:none;margin:0;padding:0}
.cs-nums li{display:flex;flex-direction:column;gap:var(--s1);min-width:0}
.cs-nums b{font-size:var(--fs-l);font-weight:500;letter-spacing:-.045em;line-height:.9;font-stretch:88%;font-variant-numeric:tabular-nums;white-space:nowrap}
.cs-nums span{font-size:var(--fs-label);color:var(--on-night-muted)}
.cs-tech{grid-column:1/span 8;font-size:var(--fs-label);color:var(--on-night-muted);max-width:44em}
.cs-next{grid-column:1/-1;display:flex;flex-direction:column;gap:var(--s1);width:max-content;max-width:100%;margin-top:var(--s2)}
.cs-nl{font-size:var(--fs-label);color:var(--on-night-muted)}
.cs-nn{display:inline-flex;align-items:center;gap:var(--s2);font-size:var(--fs-m);font-weight:500;letter-spacing:-.04em;line-height:1;font-stretch:88%}

@media (max-width:1080px){
  .hb-mon{grid-column:6/-1}
}
@media (max-width:960px){
  .cs-rows{grid-column:1/-1}
  .cs-row{grid-template-columns:repeat(4,minmax(0,1fr));align-items:start;padding-block:var(--s6)}
  .cs-row:first-child{padding-top:0}
  .cs-rt,#gocce .cs-rt,#formati .cs-rt{grid-column:1/-1;grid-row:auto}
  .cs-rp,#formati .cs-rp{grid-column:1/-1;grid-row:auto;display:flex;justify-content:center}
  .cs-rp .cs-ph2{width:min(64vw,340px);max-width:none}
  .cs-wire{grid-column:1/-1}
  /* phones: thread, words, then the screen, as wide as the page and cut by the bottom of the stage (the pages read from the top) */
  .hb-st{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:auto auto 1fr;row-gap:var(--s3);padding-top:calc(var(--hd) + var(--s2));padding-bottom:calc(var(--s3) + env(safe-area-inset-bottom,0px));overflow:hidden}
  .hb-th{grid-column:1/-1;padding-top:var(--s2);min-height:calc(var(--s2) + 1.4em)}
  .hb-th .hb-n,.hb-th .hb-n:last-of-type{left:0;right:auto;top:var(--s2);transform:none;opacity:0;color:var(--on-night);transition:opacity var(--t2) var(--ease)}
  .hb-th .hb-n.on{opacity:1}
  .hb-n em{display:inline}
  .hb-tx{grid-column:1/-1;grid-row:2;align-self:start}
  /* whole on the screen: case.js gives it the height left under the words (the pages read from the top), centered */
  .hb-mon{grid-column:1/-1;grid-row:3;width:100%;align-self:start;justify-self:center;border-radius:8px;box-shadow:0 24px 48px rgba(0,0,0,.4)}
  .hb-h{font-size:var(--fs-m)}
  .cs-nums{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cs-tech{grid-column:1/-1}
}
@media (max-width:560px){
  .dz-uses{gap:var(--s0) var(--s3)}
  .fmt{gap:var(--s1) var(--s3)}
}
/* Reduced motion (and no JS): no still scene; every stage with its words in a column, the thread complete, the
   screen of the scan confirmed; the calculator's bar and the trade sizes appear at once */
@media (prefers-reduced-motion:reduce){
  .cs-wire path{stroke-dashoffset:0}
  .hb-sc{height:auto;margin-inline:0}
  .hb-st{position:static;height:auto;padding:var(--s5) 0 0;row-gap:var(--s5);overflow:visible}
  .hb-tx{display:flex;flex-direction:column;gap:var(--s5)}
  .hb-s{opacity:1}
  .hb-h>span>i{transform:none}
  .hb-fill{transform:none}
  .hb-dot{transform:translateX(0)}
  .hb-n{color:var(--on-night)}
  .hb-i:nth-child(5){opacity:1}
  .hb-mon{width:100%;justify-self:stretch}
}
html:not(.js) .cs-wire path{stroke-dashoffset:0}
html:not(.js) .hb-sc{height:auto;margin-inline:0}
html:not(.js) .hb-st{position:static;height:auto;padding:var(--s5) 0 0;row-gap:var(--s5);overflow:visible}
html:not(.js) .hb-tx{display:flex;flex-direction:column;gap:var(--s5)}
html:not(.js) .hb-s{opacity:1}
html:not(.js) .hb-h>span>i{transform:none}
html:not(.js) .hb-fill{transform:none}
html:not(.js) .hb-n{color:var(--on-night)}
html:not(.js) .hb-i:nth-child(5){opacity:1}
html:not(.js) .hb-mon{width:100%;justify-self:stretch}

@media (max-width:960px) and (prefers-reduced-motion:reduce){
  .hb-th .hb-n,.hb-th .hb-n:last-of-type{position:static;display:block;opacity:1;margin-top:var(--s1)}
  .hb-th{padding-top:var(--s3)}
}
@media (max-width:960px){
  html:not(.js) .hb-th .hb-n,html:not(.js) .hb-th .hb-n:last-of-type{position:static;display:block;opacity:1;margin-top:var(--s1)}
  html:not(.js) .hb-th{padding-top:var(--s3)}
}
