/* The Kaydorn Sibyl page (it/sibyl/, en/sibyl/, de/sibyl/, ar/sibyl/), loaded after site.css and offering.css.
   A product page in few words, after the narrative of the study behind it: the promise over the render of a network
   that a pulse runs through; the problem, an AI that rereads the whole archive for every question; the statement, a
   Sibyl trained once that pays for itself; how it studies; the results with their source; Sibyls combining; the
   questions running across the screen; the technique behind a button; and the close.
   The drawings are inline SVG, coloured here and measured in their own units, as the dial of the Kaydorn AI page: lines
   and labels scale with them. They keep their left and right on the Arabic pages, because they are pictures. Their
   motion runs only while they are on screen (data-motion, assets/site.js) and not at all for a visitor who asks for less
   motion. The lights that run along a line reuse of-flow and the breathing of-glow (offering.css). */

/* The skill of the headline turns: five steps of one sixth of the track each, the last a copy of the first, so the
   loop starts again on the same words. */
@keyframes sb-rotor {
  0%, 16% { transform: translateY(0); }
  20%, 36% { transform: translateY(calc(-100% / 6)); }
  40%, 56% { transform: translateY(calc(-200% / 6)); }
  60%, 76% { transform: translateY(calc(-300% / 6)); }
  80%, 96% { transform: translateY(calc(-400% / 6)); }
  100% { transform: translateY(calc(-500% / 6)); }
}

/* ---------- Opening ---------- */
/* The promise on the side of the reading, the render of the agents' network on the other, under a shade that fades it
   into the dark under the words. The script runs a pulse through the network (.visual__stage, site.css and site.js).
   The headline breaks before its brass part. */
.sb-hero { --shade-to: 90deg; position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; min-height: 100svh; padding-block: calc(var(--nav-h) + clamp(2rem, 5vw, 4.5rem)) clamp(3rem, 6vw, 5rem); }
[dir="rtl"] .sb-hero { --shade-to: 270deg; }
.sb-hero__visual { position: absolute; inset-block: 0; inset-inline-end: -12%; z-index: -2; width: min(64%, 62rem); align-items: center; }
.sb-hero__visual .visual__stage { --zoom: 1.3; width: min(100%, 56rem); }
.sb-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(var(--shade-to), var(--abyss) 26%, color-mix(in srgb, var(--abyss) 55%, transparent) 50%, transparent 74%), linear-gradient(0deg, var(--abyss), transparent 22%); }
.sb-hero__in { display: grid; justify-items: start; gap: clamp(1.2rem, 2.4vw, 1.8rem); }
.sb-brand { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.05rem; font-weight: 500; letter-spacing: .01em; color: var(--bone); }
.sb-brand__mark { width: 18px; height: 18px; fill: var(--brass-hi); }
.sb-hero__title { font-size: clamp(2.5rem, 4.2vw, 4.4rem); font-weight: 400; line-height: 1.02; letter-spacing: -.045em; }
.sb-hero__title em { display: block; }
/* The headline teaches the agent a skill of the company: on a wide screen the skill turns, one line high, through
   contracts, financials, procedures and customers to the craft of the company, which screen readers read and which
   stands still on a phone and for a visitor who asks for less motion. */
.sb-rotor { display: block; color: var(--brass-hi); }
.sb-rotor__track { display: none; }
@media (prefers-reduced-motion: no-preference) and (min-width: 761px) {
  .sb-rotor { position: relative; height: 1.1em; overflow: hidden; }
  .sb-rotor em { height: 1.1em; line-height: 1.1; white-space: nowrap; }
  .sb-rotor__still { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .sb-rotor__track { display: block; animation: sb-rotor 15s cubic-bezier(.7, 0, .2, 1) infinite; }
}
/* The line under the promise is wide enough for two lines on a large screen, and balanced, so no word is left alone. */
.sb-hero__sub { max-width: 40rem; font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.5; text-wrap: balance; color: color-mix(in srgb, var(--bone) 78%, var(--mist)); }
.sb-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.8rem; margin-top: .6rem; }
.sb-link { padding-block: .3rem; font-size: 1rem; color: var(--bone); text-decoration: none; border-bottom: 1px solid var(--rule-strong); transition: color .2s ease, border-color .2s ease; }
.sb-link:hover { color: var(--brass-hi); border-color: var(--brass-hi); }
.sb-hero__in > * { animation: of-rise .9s var(--ease) both; }
.sb-hero__in > :nth-child(2) { animation-delay: .08s; }
.sb-hero__in > :nth-child(3) { animation-delay: .18s; }
.sb-hero__in > :nth-child(4) { animation-delay: .28s; }

/* ---------- Numbers ---------- */
/* The results: a title, then three numbers side by side, as large as their columns allow, each with what it measures. They count up once
   (data-count, assets/site.js). Under them, where they come from, with the link to the study. */
.sb-specs__title { max-width: 16em; margin-bottom: clamp(2.4rem, 5vw, 4rem); }
.sb-specs__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--rule); }
.sb-spec { display: grid; align-content: start; gap: 1rem; padding-block: clamp(2.2rem, 4.4vw, 3.6rem); padding-inline: clamp(1.2rem, 3vw, 2.8rem); }
.sb-spec:first-child { padding-inline-start: 0; }
.sb-spec + .sb-spec { border-inline-start: 1px solid var(--rule); }
.sb-spec:nth-child(2) { --d: .08s; }
.sb-spec:nth-child(3) { --d: .16s; }
.sb-spec__num { font-size: clamp(4rem, 7.4vw, 7.4rem); font-weight: 200; line-height: .85; letter-spacing: -.055em; color: var(--brass-hi); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sb-spec__text { max-width: 18rem; font-size: 1.05rem; line-height: 1.5; color: var(--mist); }
.sb-source { max-width: 46rem; margin-top: 1.8rem; font-size: .9rem; line-height: 1.6; color: var(--mist); }
.sb-source a { color: var(--brass-hi); text-decoration: none; white-space: nowrap; border-bottom: 1px solid color-mix(in srgb, var(--brass-hi) 40%, transparent); transition: border-color .2s ease; }
.sb-source a:hover { border-bottom-color: var(--brass-hi); }

/* The statement takes less than a screen here: the page has more to show after it. */
.sb-statement { min-height: 0; padding-block: clamp(6rem, 14vw, 12rem); }

/* ---------- Sections ---------- */
/* A section is its title and little else: no label above it. A drawing stands in its panel and fits inside it. */
.sb-section { padding-block: clamp(5rem, 11vw, 10rem); }
.sb-title { font-size: clamp(2.3rem, 4.6vw, 4.6rem); font-weight: 400; line-height: 1.04; letter-spacing: -.04em; text-wrap: balance; overflow-wrap: break-word; }
/* The brass part of a title, its answer, starts a line of its own. */
.sb-title em { display: block; }
.sb-art { position: relative; display: block; min-width: 0; padding: 0; overflow: hidden; border: 1px solid var(--rule); }
.sb-art .of-drawing { position: absolute; inset: clamp(1rem, 3vw, 2.4rem); width: auto; margin: 0; }
.sb-art .of-drawing > svg { height: 100%; }

/* How Sibyl learns, drawn as the map of a training job (.sb-loop): a title, a line, then a board with its legend,
   the drawing and the captions of its four steps. On a wide screen one row of the drawing is lit at a time, and its
   caption shows under the drawing, in turn, every 4 seconds; on a phone, or for a visitor who asks for less motion,
   every row stays lit and the captions stand as a list. The drawing scrolls sideways inside its board on a phone. */
@keyframes sb-lit { 0%, 22% { opacity: 1; } 26%, 96% { opacity: .3; } 100% { opacity: 1; } }
@keyframes sb-badge { 0%, 22% { fill: var(--brass-hi); } 26%, 96% { fill: var(--abyss); } 100% { fill: var(--brass-hi); } }
@keyframes sb-badge-n { 0%, 22% { fill: var(--abyss); } 26%, 96% { fill: var(--bone); } 100% { fill: var(--abyss); } }
@keyframes sb-caption { 0%, 22% { opacity: 1; visibility: visible; } 26%, 96% { opacity: 0; visibility: hidden; } 100% { opacity: 1; visibility: visible; } }
/* The line under the title runs the width of the page, so on a large screen it holds on one line. */
.sb-loop__lede { margin-top: 1.2rem; font-size: 1.1rem; color: var(--mist); }
.sb-loop__board { margin-top: clamp(2.4rem, 5vw, 4rem); padding: clamp(1.4rem, 3vw, 2.6rem); border: 1px solid var(--rule); background: color-mix(in srgb, var(--hull) 55%, transparent); }
.sb-loop__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2.2rem; margin: 0 0 clamp(1.4rem, 3vw, 2.2rem); padding: 0; list-style: none; font: 400 .8rem/1.3 var(--f-mono); color: var(--mist); }
.sb-loop__key { display: inline-flex; align-items: center; gap: .55rem; }
.sb-loop__key::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.sb-loop__key--data::before { background: var(--bone); }
.sb-loop__key--loop::before { background: var(--brass); }
.sb-loop__key--model::before { background: color-mix(in srgb, var(--mist) 70%, transparent); }
.sb-loop__key--kv::before { background: var(--brass-hi); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brass-hi) 25%, transparent); }
/* The drawing reads left to right in every language, so its scroll starts from the data on the Arabic pages too. */
.sb-loop__scroll { overflow-x: auto; direction: ltr; }
.sb-loop__figure { margin: 0; }
.sb-loop__svg { display: block; width: 100%; min-width: 46rem; height: auto; overflow: visible; direction: ltr; }
.sb-loop__data rect { fill: color-mix(in srgb, var(--bone) 7%, transparent); }
.sb-loop__excerpt rect { fill: color-mix(in srgb, var(--bone) 80%, transparent); }
.sb-loop__port { fill: var(--bone); stroke: var(--hull); stroke-width: 3; }
.sb-loop__wire { fill: none; stroke: color-mix(in srgb, var(--bone) 70%, transparent); stroke-width: 2; }
.sb-loop__rail, .sb-loop__arrow { fill: none; stroke: var(--brass); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sb-loop__flow { fill: none; stroke: var(--brass-hi); stroke-width: 3.4; stroke-linecap: round; stroke-dasharray: 10 110; stroke-dashoffset: 10; animation: of-flow 4s linear infinite; }
.sb-loop__line { fill: none; stroke: color-mix(in srgb, var(--bone) 16%, transparent); stroke-width: 1.6; }
.sb-loop__node { fill: var(--brass); }
.sb-loop__badge { fill: var(--abyss); stroke: var(--rule-strong); stroke-width: 1.2; }
.sb-loop__n { fill: var(--bone); font: 500 13px/1 var(--f-mono); }
.sb-loop__call { fill: var(--bone); font: 500 15px/1 var(--f-mono); }
.sb-loop__gate { fill: var(--abyss); stroke: color-mix(in srgb, var(--mist) 70%, transparent); stroke-width: 1.6; }
.sb-loop__boundary { fill: none; stroke: color-mix(in srgb, var(--mist) 45%, transparent); stroke-width: 1.4; stroke-dasharray: 2 6; stroke-linecap: round; }
.sb-loop__sep { fill: none; stroke: var(--rule-strong); stroke-width: 1; stroke-dasharray: 4 6; }
.sb-loop__unit { fill: var(--mist); font: 400 13px/1 var(--f-mono); }
.sb-loop__cell { fill: color-mix(in srgb, var(--bone) 6%, transparent); }
.sb-loop__w { fill: color-mix(in srgb, var(--mist) 55%, transparent); }
.sb-loop__d { fill: color-mix(in srgb, var(--bone) 85%, transparent); }
.sb-loop__k, .sb-loop__ckpt { fill: var(--brass-hi); }
.sb-loop__steps { display: grid; gap: 1rem; max-width: 40rem; margin: clamp(1.4rem, 3vw, 2rem) 0 0 auto; padding: 0; list-style: none; }
.sb-loop__step { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: .3rem .8rem; padding: 1rem 1.1rem; border: 1px solid var(--rule-strong); background: color-mix(in srgb, var(--abyss) 70%, transparent); }
.sb-loop__num { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; font: 500 .78rem/1 var(--f-mono); color: var(--abyss); background: var(--brass-hi); }
.sb-loop__id { font: 500 .85rem/1.4 var(--f-mono); color: var(--bone); }
.sb-loop__text { grid-column: 2; font-size: .95rem; line-height: 1.5; color: var(--mist); }
.sb-loop__row:nth-child(2), .sb-loop__step:nth-child(2) { --at: -12s; }
.sb-loop__row:nth-child(3), .sb-loop__step:nth-child(3) { --at: -8s; }
.sb-loop__row:nth-child(4), .sb-loop__step:nth-child(4) { --at: -4s; }
@media (prefers-reduced-motion: no-preference) and (min-width: 761px) {
  .sb-loop__row { animation: sb-lit 16s linear var(--at, 0s) infinite; }
  .sb-loop__badge { animation: sb-badge 16s linear var(--at, 0s) infinite; }
  .sb-loop__n { animation: sb-badge-n 16s linear var(--at, 0s) infinite; }
  .sb-loop__steps { display: block; position: relative; }
  .sb-loop__step { animation: sb-caption 16s linear var(--at, 0s) infinite; }
  .sb-loop__step + .sb-loop__step { position: absolute; inset: 0 0 auto; }
}

/* The same server for many more agents: the title and its line in the middle, the GPU's memory wide under them. */
.sb-hw { text-align: center; }
.sb-hw__title { max-width: 14em; margin-inline: auto; }
.sb-hw__text { max-width: 36rem; margin: 1.4rem auto 0; font-size: 1.1rem; color: var(--mist); }
.sb-hw__art { aspect-ratio: 16 / 7; margin-top: clamp(2.6rem, 5vw, 4rem); }

/* Many archives, one answer: the words on the side of the reading, the Sibyls plugging into the model on the other. */
.sb-compose__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2.4rem, 6vw, 6rem); }
.sb-compose__text { max-width: 30rem; margin-top: 1.4rem; font-size: 1.1rem; color: var(--mist); }
.sb-compose__art { aspect-ratio: 5 / 4; }

/* The questions the agents answer, running across the screen in the strip of the site (.marquee, site.css and
   site.js), each followed by a brass star. */
.sb-asks__title { max-width: 15em; margin: 0 auto clamp(2rem, 4vw, 3rem); padding-inline: var(--gutter); text-align: center; }
.sb-asks__strip { padding-block: 0; }
.sb-asks__list li { display: inline-flex; align-items: center; gap: clamp(2.5rem, 5vw, 4.5rem); font-size: clamp(1.3rem, 2.2vw, 2rem); font-weight: 300; letter-spacing: -.015em; white-space: nowrap; color: var(--bone); }
.sb-asks__list li::after { content: "\2726"; font-size: .7em; color: var(--brass); }

/* The technique: a title, a line and a button that opens the architecture. */
.sb-deep__text { max-width: 40rem; margin-top: 1.2rem; font-size: 1.1rem; color: var(--mist); }
.sb-deep__more { margin-top: clamp(1.8rem, 3vw, 2.4rem); }
.sb-deep__more > summary { list-style: none; cursor: pointer; }
.sb-deep__more > summary::-webkit-details-marker { display: none; }
.sb-deep__more > summary::after { content: "+"; margin-inline-start: .7rem; font-size: 1.2em; line-height: 1; }
.sb-deep__more[open] > summary { margin-bottom: clamp(2rem, 4vw, 3rem); }
.sb-deep__more[open] > summary::after { content: "\2212"; }

/* The close takes less than a screen, centred as on every page. */
.sb-close { min-height: 0; padding-block: clamp(6rem, 12vw, 10rem); }
.sb-close .page-close__title { max-width: 14em; margin-inline: auto; }

/* ---------- The drawings ---------- */
/* The hardware: the memory of the GPU as a row of 38 cells, twice. The documents read for every answer fill the
   row above, in the colour the site gives the old way, and a light reads it end to end again and again; the memory takes
   one cell of the row below, which breathes, and leaves the rest free. The cells are the dashes of a line with a
   pathLength of 38. */
.sb-bars__pages rect { fill: var(--hull-2); stroke: color-mix(in srgb, var(--alert) 90%, transparent); stroke-width: 1.4; }
.sb-bars__full, .sb-bars__free, .sb-bars__one { fill: none; stroke-width: 40; stroke-dasharray: .76 .24; }
.sb-bars__full { stroke: color-mix(in srgb, var(--alert) 72%, var(--hull)); }
.sb-bars__free { stroke: color-mix(in srgb, var(--bone) 16%, transparent); }
.sb-bars__one { stroke: var(--brass-hi); stroke-dasharray: .76 37.24; animation: of-glow 4s ease-in-out infinite; }
.sb-bars__sweep { fill: none; stroke: var(--alert); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 10 110; stroke-dashoffset: 10; animation: of-flow 2.6s cubic-bezier(.45, 0, .55, 1) infinite; }
.sb-bars__star { fill: var(--brass-hi); }
.sb-bars__counts text { font: 300 54px/1 var(--f-sans); letter-spacing: -.03em; }
.sb-bars__count--full { fill: var(--alert); }
.sb-bars__count--one { fill: var(--brass-hi); }

/* The Sibyls combining: Legal and Finance as grids of KV cells, lit, and HR waiting, dashed and dim, drifting a
   little; lights run from the two loaded into the context, where a frame reads the cells one after the other as the
   model's attention does, and from the context into the frozen model, which answers by the star. */
@keyframes sb-read { 0%, 6% { transform: translateX(0); } 94%, 100% { transform: translateX(480px); } }
@keyframes sb-wait { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.sb-mix__card { fill: color-mix(in srgb, var(--brass) 9%, var(--hull-2)); stroke: var(--brass); stroke-width: 1.4; }
.sb-mix__name { fill: var(--bone); font: 500 15px/1 var(--f-mono); letter-spacing: .16em; }
.sb-mix__kv rect { fill: var(--brass-hi); }
.sb-mix__kv rect:nth-child(3n) { fill: color-mix(in srgb, var(--brass-hi) 70%, transparent); }
.sb-mix__kv rect:nth-child(4n + 1) { fill: color-mix(in srgb, var(--brass-hi) 50%, transparent); }
.sb-mix__sibyl--idle { animation: sb-wait 5s ease-in-out infinite; }
.sb-mix__sibyl--idle .sb-mix__card { fill: var(--hull-2); stroke: var(--rule-strong); stroke-dasharray: 6 6; }
.sb-mix__sibyl--idle .sb-mix__name { fill: var(--mist); }
.sb-mix__sibyl--idle .sb-mix__kv rect { fill: color-mix(in srgb, var(--bone) 14%, transparent); }
.sb-mix__wires path { fill: none; stroke: color-mix(in srgb, var(--brass) 50%, transparent); stroke-width: 1.6; }
.sb-mix__wire--idle { fill: none; stroke: var(--rule-strong); stroke-width: 1.4; stroke-dasharray: 4 6; }
.sb-mix__flows path { fill: none; stroke: var(--brass-hi); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 10 110; stroke-dashoffset: 10; animation: of-flow 3s cubic-bezier(.45, 0, .55, 1) infinite; }
.sb-mix__flows path:nth-child(2) { animation-delay: -1s; }
.sb-mix__flows path:nth-child(3) { animation-delay: -2s; }
.sb-mix__k { fill: var(--brass-hi); }
.sb-mix__q { fill: color-mix(in srgb, var(--bone) 85%, transparent); }
.sb-mix__scan { fill: none; stroke: var(--bone); stroke-width: 2; animation: sb-read 6s ease-in-out infinite; }
.sb-mix__formula { fill: var(--mist); font: 400 15px/1 var(--f-mono); }
.sb-mix__model { fill: color-mix(in srgb, var(--mist) 8%, var(--hull-2)); stroke: color-mix(in srgb, var(--mist) 55%, transparent); stroke-width: 1.4; }
.sb-mix__layers { fill: none; stroke: color-mix(in srgb, var(--mist) 40%, transparent); stroke-width: 2; stroke-linecap: round; }
.sb-mix__label { fill: var(--mist); font: 400 13px/1 var(--f-mono); }
.sb-mix__answer { fill: none; stroke: color-mix(in srgb, var(--bone) 70%, transparent); stroke-width: 4; stroke-linecap: round; }
.sb-mix__star { fill: var(--brass-hi); animation: of-glow 3s ease-in-out infinite; }

/* ---------- Architecture ---------- */
/* For the technical reader, behind a button: the two phases of the product on one board, on the hull's colour and
   over the grid of dots of the drawings' panels (of-panel, offering.css). Each phase is a rail of steps, then its
   formulas: the objective and the shape of the memory for the study, the bytes of a token and two bars for the serving.
   Unlike the drawings, the board is text, read by screen readers and translated; only the glyphs of the steps are
   pictures, hidden and kept left to right, and so are the formulas. On the Arabic pages the rails run from the right,
   as the words do. A signal crosses each rail, one step after the other: the dot of a step lights up and its line
   fills from the dot. The steps of a rail share one beat, each a fraction of it later than the one before. */
@keyframes sb-signal { 0%, 14% { background-color: var(--brass-hi); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brass-hi) 22%, transparent); } 26%, 100% { background-color: var(--brass); box-shadow: 0 0 0 0 transparent; } }
@keyframes sb-wire { 0% { opacity: 1; transform: scaleX(0); } 16% { opacity: 1; transform: scaleX(1); } 28%, 100% { opacity: 0; transform: scaleX(1); } }
@keyframes sb-pick { 0%, 18% { opacity: 1; } 26%, 100% { opacity: .2; } }
@keyframes sb-fit { 0%, 100% { transform: scaleY(.6); } 50% { transform: scaleY(1); } }

.sb-board { position: relative; display: grid; place-items: stretch; gap: clamp(2.4rem, 4.4vw, 3.6rem); padding: clamp(1.4rem, 3.6vw, 3.4rem); border: 1px solid var(--rule); }
.sb-board > * { position: relative; }
.sb-board.is-idle .sb-node::before, .sb-board.is-idle .sb-node::after { animation-play-state: paused; }
.sb-phase { display: grid; gap: clamp(1.8rem, 3vw, 2.6rem); }
.sb-phase__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.1rem; }
.sb-phase__tag { align-self: center; padding: .34rem .56rem; font: 500 .72rem/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--abyss); background: var(--brass); }
.sb-phase__name { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 300; letter-spacing: -.02em; }
.sb-phase__when { font-size: .98rem; color: var(--mist); }
.sb-phase__meta { margin-inline-start: auto; font: 400 .8rem/1.4 var(--f-mono); letter-spacing: .04em; color: var(--brass-hi); }

/* A rail lays its steps in a row, --cols of them to a row: all of them on a wide screen. */
.sb-rail { --steps: 6; --beat: 6s; display: grid; grid-template-columns: repeat(var(--cols, var(--steps)), minmax(0, 1fr)); row-gap: 2.6rem; }
.sb-rail--serve { --steps: 4; }
.sb-node { --n: 0; position: relative; display: grid; align-content: start; gap: .6rem; padding-block-start: 1.5rem; padding-inline-end: clamp(.8rem, 1.6vw, 1.4rem); border-top: 1px solid color-mix(in srgb, var(--brass) 38%, transparent); }
.sb-node:nth-child(2) { --n: 1; }
.sb-node:nth-child(3) { --n: 2; }
.sb-node:nth-child(4) { --n: 3; }
.sb-node:nth-child(5) { --n: 4; }
.sb-node:nth-child(6) { --n: 5; }
.sb-node::before, .sb-node::after { content: ""; position: absolute; inset-inline-start: 0; animation: var(--beat) linear calc(var(--n) * var(--beat) / var(--steps)) infinite; }
.sb-node::before { top: -4px; z-index: 1; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); animation-name: sb-signal; }
.sb-node::after { top: -1px; width: 100%; height: 1px; background: var(--brass-hi); opacity: 0; transform-origin: left; animation-name: sb-wire; }
[dir="rtl"] .sb-node::after { transform-origin: right; }
.sb-node__name { display: flex; align-items: baseline; gap: .6rem; margin: 0; font-size: 1.08rem; font-weight: 500; letter-spacing: -.005em; }
.sb-node__id { font: 500 .72rem/1 var(--f-mono); letter-spacing: .14em; color: var(--brass); }
.sb-node__text { font-size: .92rem; line-height: 1.5; color: var(--mist); }
.sb-node__value { margin-top: .2rem; font: 400 .8rem/1.4 var(--f-mono); color: var(--brass-hi); }

/* A formula keeps left to right and its parts stay whole: the objective breaks, if it must, between its two halves. */
.sb-math { font: 400 clamp(.9rem, 1.5vw, 1.22rem)/1.5 var(--f-mono); color: var(--bone); unicode-bidi: isolate; }
.sb-math sub, .sb-math sup { font-size: .62em; line-height: 0; }
.sb-math__part { display: inline-block; white-space: nowrap; }
.sb-node__value .sb-math { font: inherit; color: inherit; }
.sb-eqs { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.6rem clamp(1.6rem, 4vw, 3.6rem); }
.sb-eq { display: grid; align-content: start; gap: .9rem; padding-top: 1.3rem; border-top: 1px solid var(--rule); }
.sb-eq__label, .sb-handoff { font: 500 .72rem/1.4 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--brass); }
.sb-eq__keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: .45rem 1.4rem; font-size: .86rem; line-height: 1.45; color: var(--mist); }
.sb-eq__keys div { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); align-items: baseline; gap: .6rem; }
.sb-eq__keys dt { font: 500 .84rem/1.45 var(--f-mono); color: var(--brass-hi); unicode-bidi: isolate; }
.sb-eq__keys dd { margin: 0; }

/* Between the phases, the memory goes from the study to the server: a label between two rules, which fade away from
   it. --away points from the label to the start of the line, and turns with the direction of the page. */
.sb-handoff { --away: 270deg; display: flex; align-items: center; gap: 1rem; }
[dir="rtl"] .sb-handoff { --away: 90deg; }
.sb-handoff::before, .sb-handoff::after { content: ""; flex: 1; height: 1px; background: linear-gradient(var(--away), color-mix(in srgb, var(--brass) 45%, transparent), transparent); }
.sb-handoff::after { background: linear-gradient(calc(var(--away) + 180deg), color-mix(in srgb, var(--brass) 45%, transparent), transparent); }

/* The memory of one user on the GPU: the full context fills its bar, in the colour the site gives the old way; the
   memory takes 1/64 of it, 256 MiB of 16 GiB, and breathes. The bars start where the text starts. */
.sb-gauge { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1.6rem clamp(1.6rem, 4vw, 3.6rem); }
.sb-gauge__bars { display: grid; align-content: start; gap: 1.6rem; padding-top: 1.3rem; border-top: 1px solid var(--rule); }
.sb-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: .5rem 1rem; }
.sb-bar__name { font-size: .92rem; color: var(--mist); }
.sb-bar__size { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 200; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sb-bar__track { grid-column: 1 / -1; display: block; height: 12px; background: color-mix(in srgb, var(--bone) 7%, transparent); }
.sb-bar__fill { display: block; height: 100%; }
.sb-bar--full .sb-bar__fill { width: 100%; background: color-mix(in srgb, var(--alert) 42%, var(--hull)); }
.sb-bar--full .sb-bar__size { color: color-mix(in srgb, var(--alert) 80%, var(--mist)); }
.sb-bar--memory .sb-bar__fill { width: max(4px, 100% / 64); background: var(--brass-hi); animation: of-glow 4s ease-in-out infinite; }
.sb-bar--memory .sb-bar__size { color: var(--brass-hi); }

/* The glyphs of the steps, drawn in 96 by 56 units with the lines and colours of the chapters' drawings. */
.sb-glyph { display: block; width: 6rem; max-width: 100%; height: auto; margin-bottom: .5rem; overflow: visible; direction: ltr; }
.sb-glyph__sheet { fill: var(--hull-2); stroke: var(--rule-strong); stroke-width: 1.2; }
.sb-glyph__sheet--front { stroke: color-mix(in srgb, var(--bone) 45%, transparent); }
.sb-glyph__text { fill: none; stroke: color-mix(in srgb, var(--bone) 38%, transparent); stroke-width: 2.4; stroke-linecap: round; }
.sb-glyph__track { fill: none; stroke: color-mix(in srgb, var(--bone) 10%, transparent); stroke-width: 12; }
.sb-glyph__chunks path { fill: none; stroke: var(--brass-hi); stroke-width: 12; animation: sb-pick 3.6s ease-in-out infinite; }
.sb-glyph__chunks path:nth-child(2) { animation-delay: -2.4s; }
.sb-glyph__chunks path:nth-child(3) { animation-delay: -1.2s; }
.sb-glyph__marks, .sb-glyph__layer, .sb-glyph__brace, .sb-glyph__link { fill: none; stroke: color-mix(in srgb, var(--brass) 40%, transparent); stroke-width: 1.2; }
.sb-glyph__chips rect { fill: var(--brass-hi); stroke: var(--brass-hi); stroke-width: 1; animation: sb-pick 5s ease-in-out infinite; }
.sb-glyph__chips rect:nth-child(2) { animation-delay: -4s; }
.sb-glyph__chips rect:nth-child(3) { animation-delay: -3s; }
.sb-glyph__chips rect:nth-child(4) { animation-delay: -2s; }
.sb-glyph__chips rect:nth-child(5) { animation-delay: -1s; }
.sb-glyph__flows path { fill: none; stroke: var(--brass-hi); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 10 110; stroke-dashoffset: 10; animation: of-flow 2.6s cubic-bezier(.45, 0, .55, 1) infinite; }
.sb-glyph__flows path:nth-child(2) { animation-delay: -1.3s; }
.sb-glyph__agent, .sb-glyph__frame, .sb-glyph__module { fill: color-mix(in srgb, var(--abyss) 70%, var(--hull)); stroke: var(--brass); stroke-width: 1.2; }
.sb-glyph__module--out { stroke: var(--rule-strong); }
.sb-glyph__letter { fill: var(--bone); font: 500 12px/1 var(--f-mono); }
.sb-glyph__teacher { fill: none; stroke: color-mix(in srgb, var(--bone) 50%, transparent); stroke-width: 1.2; }
.sb-glyph__student rect { fill: var(--brass-hi); transform-box: fill-box; transform-origin: 50% 100%; animation: sb-fit 4s ease-in-out infinite; }
.sb-glyph__base { fill: none; stroke: var(--rule-strong); stroke-width: 1; }
.sb-glyph__cells { fill: none; stroke: color-mix(in srgb, var(--brass-hi) 70%, transparent); stroke-width: 5; stroke-dasharray: 5 2; animation: of-glow 4s ease-in-out infinite; }
.sb-glyph__plate, .sb-glyph__z, .sb-glyph__prefix { fill: color-mix(in srgb, var(--brass) 18%, transparent); stroke: color-mix(in srgb, var(--brass) 60%, transparent); stroke-width: 1.2; }
.sb-glyph__pins { fill: none; stroke: var(--brass-hi); stroke-width: 2.5; }
.sb-glyph__q { fill: none; stroke: color-mix(in srgb, var(--bone) 55%, transparent); stroke-width: 1.2; }
.sb-glyph__layers { fill: none; stroke: color-mix(in srgb, var(--bone) 30%, transparent); stroke-width: 1.2; }
.sb-glyph__star { fill: var(--brass-hi); }

/* ---------- Languages ---------- */
:lang(de) :is(.sb-title, .sb-hero__title, .sb-hero__sub, .sb-spec__text, .sb-source, .sb-loop__lede, .sb-loop__text, .sb-hw__text, .sb-deep__text, .sb-node__name, .sb-node__text, .sb-eq__keys) { -webkit-hyphens: auto; hyphens: auto; }
/* The monospaced face has no Arabic letters: the Arabic labels of the architecture take the face of the page. */
:lang(ar) :is(.sb-loop__legend, .sb-phase__tag, .sb-phase__meta, .sb-node__value, .sb-eq__label, .sb-handoff) { font-family: var(--f-sans); }

/* ---------- Narrower screens ---------- */
/* Below 1100 px the rails of the board take two rows each, and the formulas of a phase stand one under the other. */
@media (max-width: 1100px) {
  .sb-rail--study { --cols: 3; }
  .sb-rail--serve { --cols: 2; }
  .sb-eqs, .sb-gauge { grid-template-columns: minmax(0, 1fr); }
}
/* Below 1000 px the render stands behind the words, fainter, and the memories stand above the verbs. */
@media (max-width: 1000px) {
  .sb-hero__visual { inset-inline-end: -20%; width: 100%; opacity: .5; }
  .sb-compose__in { grid-template-columns: minmax(0, 1fr); }
}
/* In one column the numbers stand one under the other, divided by a rule. */
@media (max-width: 760px) {
  .sb-specs__list { grid-template-columns: minmax(0, 1fr); }
  .sb-spec { padding-inline: 0; }
  .sb-spec + .sb-spec { border-inline-start: 0; border-top: 1px solid var(--rule); }
  .sb-spec__num { font-size: clamp(4.4rem, 22vw, 6.4rem); }
  .sb-hw__art { aspect-ratio: 4 / 3; }
}
/* On a phone the drawings are about half their size: their labels grow in the drawing's units to stay readable, and the
   names of the memories space their letters less to keep inside their plates. */
@media (max-width: 560px) {
  .sb-hero__title em { display: inline; }
  /* The steps of a rail stand one under the other, each glyph beside its words. */
  .sb-rail--study, .sb-rail--serve { --cols: 1; }
  .sb-rail { row-gap: 2rem; }
  .sb-node { grid-template-columns: 4.4rem minmax(0, 1fr); column-gap: 1rem; padding-inline-end: 0; }
  .sb-node > .sb-glyph { grid-row: 1 / span 3; width: 100%; margin: 0; }
  .sb-node > :not(.sb-glyph) { grid-column: 2; }
  .sb-phase__meta { flex-basis: 100%; margin-inline-start: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .sb-hero__in > *, .sb-bars__one, .sb-loop__flow, .sb-bars__sweep, .sb-mix__sibyl--idle, .sb-mix__flows path,
  .sb-mix__scan, .sb-mix__star,
  .sb-node::before, .sb-node::after, .sb-bar--memory .sb-bar__fill, .sb-glyph__chunks path, .sb-glyph__chips rect,
  .sb-glyph__flows path, .sb-glyph__student rect, .sb-glyph__cells { animation: none; }
}
