/* ── /core/ under the system map (corelayers5.mjs, corelayersf5.mjs): the recap, the results, the use cases and get
   started ── */

/* the recap: the five layers as a list beside one picture of the whole way. Once it is on screen the light runs the map
   one time (v5-core-film.js), each row lighting with its station and staying lit. The rules below draw the finished
   state, everything lit; .js .clr:not(.done) holds back what the light has not reached yet. */
.clr { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 64px; align-items: center; }
.cl-t .h5 { margin-top: 24px; max-width: 14em; }
.clr-ps { margin-top: 36px; border-top: 1px solid var(--ln2); }
.clr-ps li { position: relative; padding: 17px 0 17px 22px; border-bottom: 1px solid var(--ln); }
.clr-ps li::before { content: ""; position: absolute; left: 0; top: 24px; width: 7px; height: 7px; background: var(--ma); transition: background .4s; }
.clr-ps b { display: block; font-size: 15px; font-weight: 500; line-height: 1.45; color: var(--ink); transition: color .4s; }
.js .clr:not(.done) .clr-ps li:not(.on)::before { background: rgba(var(--fg-rgb), .2); }
.js .clr:not(.done) .clr-ps li:not(.on) b { color: var(--ink2); }
/* the picture's card: plain, with the release figures' faint grid, the drawing in it with the same margin all round */
.clr .cl-m { position: relative; overflow: hidden; padding: 36px 32px; border: 1px solid var(--ln2); border-radius: 10px; background: var(--bg); }
.clr .cl-m::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background-image: linear-gradient(to right, var(--gl) 1px, transparent 1px), linear-gradient(to bottom, var(--gl) 1px, transparent 1px);
  background-size: 80px 80px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(0, 0, 0, .2) 0%, rgba(0, 0, 0, .35) 45%, #000 100%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(0, 0, 0, .2) 0%, rgba(0, 0, 0, .35) 45%, #000 100%); }
/* the metro map: one thick line through the five stations, its mint filling up to the station the light has reached
   (--f, set as it runs), the branches to the three outputs, a thin loop back as the next version */
.mt5 { position: relative; }
.mt5 svg { display: block; width: 100%; height: auto; overflow: visible; }
/* drawn twice (corelayersf5.mjs): across on wide screens, upright on phones */
.mt5 svg.mt5-p { display: none; }
.mt5 :is(.ll, .tm) { vector-effect: non-scaling-stroke; }
.mt5 .ln { fill: none; stroke: rgba(var(--fg-rgb), .16); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.mt5 .lf { fill: none; stroke: var(--ma); stroke-width: 7; stroke-linecap: butt; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: calc(1 - var(--f, 1)); }
.mt5 .lb { fill: none; stroke: rgba(var(--fg-rgb), .16); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.mt5 .bf { fill: none; stroke: var(--ma); stroke-width: 4; stroke-linecap: butt; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; transition: stroke-dashoffset .5s var(--ease); }
.mt5 .ll { fill: none; stroke: rgba(var(--fg-rgb), .14); stroke-width: 2; stroke-linejoin: round; }
.mt5 .lm { fill: rgba(var(--ma-rgb), .8); transition: opacity .8s; }
.mt5 .sx { fill: var(--bg); stroke: var(--ma); stroke-width: 3; transition: stroke .3s; }
.mt5 .si { fill: rgba(var(--fg-rgb), .3); }
.mt5 .tm { fill: var(--bg); stroke: var(--ma); stroke-width: 2; transition: stroke .3s .35s; }
.mt5 .nm { font: 500 13px/1 var(--mono); fill: var(--ink); transition: fill .4s; }
.mt5 .sm { font: 400 11px/1 var(--mono); fill: var(--ink3); }
.mt5 .st .sm { fill: var(--ink2); transition: fill .4s; }
.mt5 .tl { font: 400 11px/1 var(--mono); fill: var(--ink2); transition: fill .4s .35s; }
/* before the light reaches them: the line empty, the stations and outputs grey, the next version's squares not yet
   travelling */
.js .clr:not(.done) .mt5 svg { --f: 0; }
.js .clr:not(.done) .mt5 .st:not(.on) .sx { stroke: rgba(var(--fg-rgb), .55); }
.js .clr:not(.done) .mt5 .st:not(.on) :is(.nm, .sm) { fill: var(--ink3); }
.js .clr:not(.done) .mt5:not(.out) .bf { stroke-dashoffset: 1; }
.js .clr:not(.done) .mt5:not(.out) .tm { stroke: rgba(var(--fg-rgb), .4); }
.js .clr:not(.done) .mt5:not(.out) .tl { fill: var(--ink3); }
.js .clr:not(.done) .mt5 .lm { opacity: 0; }

/* ── the results: the figures and nothing else (user, 15 Nov: "restructuring properly for high perception and flex";
   evening: six of them, "for things to look clean", in an order where each connects to the next), all six the same
   size in one grid of equal cells that share their rules, edge to edge in the frame: three by two on a wide screen,
   what clients got on the first row and how hard the systems work on the second. A figure's size follows the grid's
   width (cqi), so the widest, 18,000+, keeps clear of its rule at every width. The rules stand from the start; each
   figure lands once as it comes into view, its characters rising into place from under the line one after another,
   then its definition fades in (.arm and .on, v5-core-film.js; without them, all of it simply shows). ── */
.cr-st { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-inline: calc(-1 * var(--pad)); border-block: 1px solid var(--ln); container-type: inline-size; }
.cr-st li { padding: 48px var(--pad) 52px; }
.cr-st li:not(:nth-child(3n + 1)) { border-left: 1px solid var(--ln); }
.cr-st li:nth-child(n + 4) { border-top: 1px solid var(--ln); }
.cr-st b { display: block; font: 500 64px/1 var(--head); font-size: clamp(40px, 6.3cqi, 76px); letter-spacing: -.05em; color: var(--ink); white-space: nowrap; }
.cr-st li > span { display: block; max-width: 18em; margin-top: 18px; font-size: 16px; line-height: 1.5; color: var(--ink2); text-wrap: balance; }
/* each character in its own slot, the figure masked at its line (the comma's tail and the dollar's strokes kept) */
.cr-c { display: inline-flex; clip-path: inset(-.15em -.2em -.25em -.1em); }
.cr-c i { font-style: normal; }
.cr-st.arm .cr-c i { transition: transform .75s var(--ease) calc(var(--dl, 0ms) + var(--k) * 45ms); }
.cr-st.arm b:not(.on) .cr-c i { transform: translateY(115%); }
.cr-st.arm li > span { transition: opacity .8s var(--ease) calc(var(--dl, 0ms) + 300ms); }
.cr-st.arm b:not(.on) + span { opacity: 0; }

/* ── the use cases: one card each, the drawing of its page at rest, its name and its line, the whole card a link.
   The cards share their rows (drawing, name, line), so a name that wraps keeps every line level ── */
.cu { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cu > li { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
.cu-c { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; padding: 14px 14px 28px; border: 1px solid var(--ln); border-radius: 10px; transition: border-color .25s, background .25s; }
.cu-c:hover, .cu-c:focus-visible { border-color: var(--ln3); background: var(--bg1); }
.cu-c .p5-rf { aspect-ratio: 16 / 10; border-radius: 6px; }
/* at a card's size the drawing's few labels render at 4 to 6px, specks nobody reads: the card's own words name it,
   so here the drawing stands as a figure without lettering (it keeps its labels on the use case's own page) */
.cu-c .ucv5-v text { display: none; }
/* the drawings hold still here, none of their loops running, and without their small labels, which a card is too
   small to read: the name and the line under it say what each one shows */
.cu .ucv5 [class*="a-"] { animation: none !important; }
.cu .ucv5 :is(.a-fo, .a-scan, text) { opacity: 0; }
.cu-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 8px 0; }
.cu-h h3 { font: 500 20px/1.15 var(--head); letter-spacing: -.025em; color: var(--ink); }
.cu-h .ic { width: 18px; height: 18px; margin-top: 2.5px; color: var(--ink3); transition: transform .25s var(--ease), color .25s; }
.cu-c:hover .cu-h .ic, .cu-c:focus-visible .cu-h .ic { color: var(--ink); transform: translateX(4px); }
.cu-l { display: block; margin-top: 10px; padding: 0 8px; font-size: 15px; line-height: 1.55; color: var(--ink3); }

/* ── the close: get started, over the home hero's grid of lines (.hero5-grid in v5.css), kept inside the frame ── */
.cg { position: relative; overflow: hidden; text-align: center; }
.cg > :not(.hero5-grid) { position: relative; z-index: 1; }
.cg .h5 { margin: 24px auto 0; max-width: 16em; }
.cg .sub5 { margin: 20px auto 0; }
.cg .b5 { margin-top: 34px; }

/* The close's one button opens the platform's form in place (start5.mjs; user, 18 Nov: "maybe we have a popup or an
   expansion? having a new page doesnt seem right?"). Closed, the block is what it was: the box of fields has no
   height, and the button stands 34px under the sentence. Open (.open on the section, v5-pages.js), the fields stand
   between the sentence and the button, in a column as wide as the sentence. The block only ever opens, so only the
   opening is timed. Without script the form simply stands open. */
.cg .p5-form.cg-f { display: block; max-width: 580px; margin: 0 auto; padding: 0; }
.cg .p5-fx { display: grid; grid-template-rows: 1fr; }
.cg .p5-fi { min-height: 0; overflow: hidden; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; text-align: left; }
.cg .p5-fi::before { content: ""; grid-column: 1 / -1; height: 16px; }   /* with the gap, 36px from the sentence to the first label, inside the fold */
.cg .p5-fd.wide > textarea, .cg .p5-fd.wide > .p5-tb { flex: none; height: 168px; }   /* the text field's box (v5-pages.css): its foot, with the microphone, is inside this height */
.cg .p5-sent { max-width: none; margin: 34px 0 0; text-align: center; }
.js .cg-s:not(.open) .p5-fx { grid-template-rows: 0fr; opacity: 0; visibility: hidden; }
.cg-s.open .p5-fx { transition: grid-template-rows .6s var(--ease), opacity .5s linear .12s; }
/* The grid stands behind the statement, not behind the form (user, 18 Nov: "the only thing that's bothering me is the
   background lines, they feel disturbing with the no-background of the form"): lines running between fields and behind
   their labels read as part of the form. It fades away as the block opens, so the form is typed into on a plain
   ground, as every other form of the site is, and it comes back once the request is sent and the block is a statement
   again. Without script the form stands open, so the grid is not shown at all. */
.cg .hero5-grid { transition: opacity .45s linear; }
.cg-s.open:not(.sent) .hero5-grid, html:not(.js) .cg .hero5-grid { opacity: 0; }
/* sent and kept (v5-pages.js): the fields fold away again, so the block closes on the line that says the request has
   arrived */
.cg-s.sent .p5-fx { grid-template-rows: 0fr; opacity: 0; visibility: hidden; transition: grid-template-rows .55s var(--ease), opacity .2s linear, visibility 0s .55s; }
@media (max-width: 640px) {
  .cg .p5-fi { grid-template-columns: minmax(0, 1fr); }
  .cg .p5-fd.wide > textarea, .cg .p5-fd.wide > .p5-tb { height: 148px; }
}
@media (prefers-reduced-motion: reduce) {
  .cg-s.open .p5-fx, .cg-s.sent .p5-fx, .cg .hero5-grid { transition: none; }
}

/* the hero fills the first screen on phones too (v5.css's narrow-screen section padding would push it 88px down and
   its scroll cue below the fold) */
.s5.coh-s > .fr5 { padding-block: 0; }
/* the hero's scroll cue (the home page's, .tu5-sd in v5.css) at the foot of the hero, above its grid */
.coh .coh-sd5 { position: absolute; left: 50%; bottom: 16px; z-index: 1; padding: 10px 20px; display: flex; flex-direction: column; align-items: center; transform: translateX(-50%); color: var(--ink3); }

@media (max-width: 1080px) {
  .cu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* the recap stacks, its map under its list: beside the list, below this width, the map's lettering would fall under
     9px; stacked, the map is drawn at most 660px wide, centred in its card */
  .clr { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .clr .mt5 svg.mt5-d { max-width: 660px; margin-inline: auto; }
}
@media (max-width: 900px) {
  /* the results two by three, on tablets and phones alike: a third of the frame would make the figures small, and one
     column would turn the six into a list longer than the screen */
  .cr-st { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cr-st li:not(:nth-child(3n + 1)) { border-left: 0; }
  .cr-st li:nth-child(even) { border-left: 1px solid var(--ln); }
  .cr-st li:nth-child(n + 3) { border-top: 1px solid var(--ln); }
  .cr-st b { font-size: clamp(28px, 9.6cqi, 76px); }
}
@media (max-width: 640px) {
  .cr-st li { padding: 28px 16px 30px var(--pad); }
  .cr-st li > span { margin-top: 10px; font-size: 13px; }
  .cu { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  /* on a phone the map stands upright: across, it would be drawn at about half size and its lettering would read at
     about 7px; upright it is drawn at about the size it shows at, names at 13px and keywords at 11px */
  .clr .cl-m { padding: 16px 12px; }
  .mt5 svg.mt5-d { display: none; }
  .mt5 svg.mt5-p { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .clr-ps li::before, .clr-ps b, .mt5 :is(.bf, .sx, .tm, .nm, .sm, .tl, .lm) { transition: none !important; }
  .mt5 .lm { display: none; }
}
