/*
 * The layout that every page of the draft shares. The look of each element
 * comes from base.css and controls.css of web/ui: this file places the
 * elements, gives an ink plate its tokens, and holds the states that the
 * motion of site.js starts from. Nothing here sets a hex value.
 */

:root {
  /*
   * The tokens as they stand on white. An ink plate makes its own from the
   * two ends, and a sheet that opens over a plate takes them all back.
   */
  --site-ink: var(--ink);
  --site-white: var(--white);
  --site-paper: var(--paper);
  --site-line: var(--line);
  --site-stone: var(--stone);
  --site-body: var(--body);
  --site-accent: var(--accent);
}

/* The height of the bar that stays at the top of the window: the header, and the sections of a tab when the page has them. */
:root { --bar: 64px; }
:root:has(.sections) { --bar: 108px; }
/* The height of the ink at the top of a page, the bar and the hero together, in a window wide enough for the two columns of a hero. It is the same in every page, so the ink stays still from a page to the next. */
:root { --plate: 792px; }

html { scroll-behavior: smooth; scroll-padding-top: var(--bar); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
/* An icon is fifteen units at fifteen pixels, so each of its lines is one pixel. A glyph is the same icon at three times its size, with lines of one pixel still. */
.icon { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: square; }
.icon.solid { fill: currentColor; stroke: none; }
.glyph { flex: none; width: 45px; height: 45px; color: var(--ink); fill: none; stroke: currentColor; stroke-width: 0.3333; stroke-linecap: square; }
.mark { width: 1em; height: 1em; display: block; flex: none; fill: currentColor; }
.lockup { display: inline-flex; align-items: center; gap: 0.34em; font: 600 1em/1 var(--sans); letter-spacing: -0.04em; white-space: nowrap; }
.lockup .mark { font-size: 0.8em; transform: translateY(-0.05em); }
.caption { color: var(--stone); max-width: 34em; }

/*
 * An ink plate: the identity in reverse. The tokens take other values, all
 * made from the tokens, so every element of base.css and controls.css reads
 * right on ink with no rule of its own.
 */
.ink {
  --ink: var(--site-white);
  --white: var(--site-ink);
  --paper: color-mix(in srgb, var(--site-white) 6%, var(--site-ink));
  --line: color-mix(in srgb, var(--site-white) 18%, var(--site-ink));
  --stone: color-mix(in srgb, var(--site-white) 60%, var(--site-ink));
  --body: color-mix(in srgb, var(--site-white) 82%, var(--site-ink));
  --accent: var(--accent-on-ink);
  background: var(--white);
  color: var(--body);
  color-scheme: dark;
}

/*
 * The bar stays at the top of the window, on ink in every page: the header,
 * and under it the sections of a tab. A line closes it, which the hero of a
 * page and the paper below it both scroll under.
 */
.bar { position: sticky; top: 0; z-index: 10; box-shadow: inset 0 -1px 0 var(--line); }

/* The header: the lockup, the tabs and the one main action. Its three anchors place the menus. */
.top { display: flex; align-items: center; gap: 28px; height: 64px; anchor-name: --top; }
.top .home { color: var(--ink); font-size: 20px; text-decoration: none; margin-right: auto; anchor-name: --top-start; }
.top nav { display: flex; align-items: center; gap: 26px; }
.top .act { border-left: 1px solid var(--line); padding-left: 26px; anchor-name: --top-end; }

/*
 * The tabs read the same, a link or a button with popovertarget that opens a
 * menu: the text of the header, in ink. A link takes its line under the
 * pointer. A button has the triangle of what opens a list, and is an ink
 * block while its menu is open, as the button of a menu in controls.css.
 */
.top nav > :is(a, button) { background: none; border: 0; padding: 2px 8px; margin-inline: -8px; color: var(--ink); font: inherit; font-weight: 500; text-decoration: none; translate: none; }
.top nav > a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.top nav > button::after { content: ""; display: inline-block; border: solid transparent; border-width: 4px 4px 0; border-top-color: currentColor; margin-left: 8px; vertical-align: middle; }
.top nav > button:has(+ .sheet:popover-open) { background: var(--ink); color: var(--white); }

/*
 * The menu of a tab: a white sheet with an ink line, on a white page and on
 * an ink plate alike, under the header and as wide as its content, from the
 * lockup to the main action. It is a popover: the browser puts it over the
 * page, and closes it on Escape and on a click outside. Each column has its
 * labels, each over a list of links: an icon in a square, a title and a line
 * of text. The last column is an aside on paper. The link under the pointer
 * or the keyboard is an ink block.
 */
.sheet { --ink: var(--site-ink); --white: var(--site-white); --paper: var(--site-paper); --line: var(--site-line); --stone: var(--site-stone); --body: var(--site-body); --accent: var(--site-accent); color-scheme: light; }
.sheet { position: fixed; inset: auto; top: anchor(--top bottom); left: anchor(--top-start left); right: anchor(--top-end right); width: auto; max-height: calc(100dvh - 80px); overflow: auto; background: var(--white); border: 1px solid var(--ink); color: var(--body); }
.sheet:popover-open { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.85fr); }
.sheet > div { display: grid; gap: 10px; align-content: start; padding: 24px 16px 20px; }
.sheet > .aside { background: var(--paper); border-left: 1px solid var(--line); }
/* A group that runs across the two columns, under them, has its links in two columns that follow theirs. The aside then stands beside both rows. */
.sheet > .across { grid-column: 1 / 3; padding-top: 0; }
.sheet > .across ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.sheet:has(.across) > .aside { grid-column: 3; grid-row: 1 / span 2; }
.sheet .label { padding-inline: 12px; }
.sheet ul { list-style: none; padding: 0; display: grid; }
.sheet ul + .label { margin-top: 14px; }
.sheet a { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 1px; padding: 7px 12px; color: var(--body); text-decoration: none; }
.sheet a b { align-self: end; font-size: 15px; line-height: 1.35; letter-spacing: -0.01em; }
.sheet a span { align-self: start; color: var(--stone); font-size: 13px; line-height: 1.45; }
/* In a menu an icon stands in a square of thirty-three. */
.sheet .icon { grid-row: 1 / span 2; align-self: center; box-sizing: content-box; padding: 8px; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.sheet a:is(:hover, :focus-visible) { background: var(--ink); color: var(--white); }
.sheet a:is(:hover, :focus-visible) :is(b, span) { color: inherit; }
.sheet a:is(:hover, :focus-visible) .icon { background: none; color: inherit; border-color: var(--stone); }
/* A browser with no anchor positioning keeps the sheet under the header of a window at the top of the page. */
@supports not (top: anchor(bottom)) {
  .sheet { top: 64px; left: 20px; right: 20px; }
}

/*
 * The sections of a tab, under the header of a page of that tab: the name of
 * their group, then a link for each page of it, with the icon of its link in
 * the menu. It is a nav of links, so base.css makes the page that is open an
 * ink block. On a narrow window the row scrolls sideways.
 */
.sections { box-shadow: inset 0 1px 0 var(--line); }
.sections .wrap { display: flex; align-items: center; gap: 28px; height: 44px; overflow-x: auto; scrollbar-width: none; }
.sections .label { flex: none; }
.sections a { display: flex; align-items: center; gap: 8px; flex: none; color: var(--stone); font-weight: 500; text-decoration: none; }
.sections a:hover { color: var(--ink); }
.sections a[aria-current] { color: var(--white); }

/* The hero. */
.hero { position: relative; overflow: hidden; }
.hero-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 64px; align-items: center; padding-block: 56px 80px; }
.hero-text { display: grid; gap: 28px; align-content: center; }
.hero h1 { font-size: clamp(48px, 7vw, 108px); line-height: 0.94; letter-spacing: -0.05em; }
.lede { font-size: 19px; line-height: 1.55; max-width: 31em; }
.ask { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; max-width: none; }
.ask label { display: grid; gap: 8px; }
.ask input { width: 17rem; }

/* The hero of a page that is not the home: a smaller title, and two links in place of the form. */
.hero.sub .hero-body { padding-block: 48px 72px; }
.hero.sub h1 { font-size: clamp(38px, 4.8vw, 72px); line-height: 0.98; }
.links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 28px; }
/* A page that leads with code: in its hero the column of the figure is the wider one. */
@media (min-width: 1081px) { .hero.code-first .hero-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); } }
/* The hero fills what the bar leaves of the plate, with its two columns at the middle. The space around them is the least that the tallest hero needs. */
@media (min-width: 1081px) {
  .hero-body { min-height: calc(var(--plate) - var(--bar)); }
  .hero.sub .hero-body { padding-block: 36px 48px; }
}

/* The drawing of the hero: the symbol, drawn from its construction, and its parts named. */
.resolve { --m: min(360px, 28vw); gap: 28px; }
.resolve .stage { display: grid; grid-template-columns: minmax(0, 1fr) var(--m); }
.resolve .drawing { width: var(--m); height: calc(var(--m) * 54 / 48); display: block; overflow: visible; }
.callouts { position: relative; list-style: none; padding: 0; }
.callouts li { position: absolute; left: 0; right: calc(var(--m) * -4 / 48); top: calc(var(--y) - 24px); display: grid; grid-template-rows: 24px auto; }
.callouts .label { align-self: end; padding-bottom: 5px; }
.callouts .rule { position: absolute; left: 0; right: 0; top: 24px; height: 1px; background: var(--stone); transform-origin: right; }
.callouts b { padding-top: 7px; font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; }
.drawing text { font-family: var(--mono); font-weight: 500; letter-spacing: 0.02em; fill: var(--stone); }
.drawing .grid { stroke: var(--line); stroke-width: 0.1; fill: none; }
.drawing .build { stroke: var(--accent); stroke-width: 0.14; fill: none; }
.drawing .dims { stroke: var(--stone); stroke-width: 0.14; fill: none; }
.drawing .node { fill: var(--accent); }
.drawing .shape { fill: var(--ink); stroke: none; }
.drawing .frame { fill: none; stroke: var(--ink); stroke-width: 0.25; }
.drawing .dashed { fill: none; stroke: var(--stone); stroke-width: 0.25; stroke-dasharray: 1 0.8; }
.drawing .cell { fill: var(--ink); }
.drawing .wire { fill: none; stroke: var(--ink); stroke-width: 0.25; }
.drawing .solid { fill: var(--ink); }
.drawing .soft { fill: var(--stone); }
.drawing .strong { fill: var(--ink); }
.drawing .faint { fill: none; stroke: var(--line); stroke-width: 0.25; }
.drawing .reverse { fill: var(--white); }

/* The lens: what the pointer reveals of the construction of the hero. */
.lens { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; visibility: hidden; color: var(--accent); }
.lens.on { visibility: visible; }
.lens .fine { stroke: currentColor; stroke-opacity: 0.18; fill: none; }
.lens .coarse { stroke: currentColor; stroke-opacity: 0.4; fill: none; }
.lens .box { fill: none; stroke: currentColor; stroke-dasharray: 3 3; }
.lens .guide { stroke: currentColor; stroke-opacity: 0.6; }
.lens .ring { fill: none; stroke: currentColor; }
.lens .focus { fill: none; stroke: currentColor; }

/* A section is a band: its label stays in the margin while it scrolls. */
.band { display: grid; grid-template-columns: 160px minmax(0, 1fr); column-gap: 40px; padding-block: 80px; }
.band > h3 { position: sticky; top: calc(var(--bar) + 16px); align-self: start; padding-top: 10px; }
.content { display: flex; flex-direction: column; gap: 48px; min-width: 0; }
.intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.intro h2 { font-size: clamp(30px, 3.7vw, 52px); line-height: 1.03; letter-spacing: -0.04em; }
figure { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
figcaption { display: grid; gap: 6px; align-content: start; }
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.figures > figure { background: var(--white); padding: 24px; }
.figures > figure > :first-child { flex: 1; }
.figures .drawing { width: 100%; height: auto; display: block; }
/* The captions of one row start on one line, whatever their length. */
.figures figcaption { min-height: 92px; }
.figures.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.figures.one { grid-template-columns: minmax(0, 1fr); }
.figures.one figcaption { min-height: 0; }
/* A part of a screen whose table needs more than half a row takes the wider column. */
@media (min-width: 861px) { .figures.lean { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
.figures.three > figure > :first-child { flex: none; }
/* A figure that opens or closes a grid takes its whole row, with its drawing beside its caption. */
.figures > figure.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 48px; }
.figures > figure.wide > * { flex: 1; }
.figures > figure.wide figcaption { min-height: 0; }
.table { overflow-x: auto; }
/* In a table of who does what, a solid mark is ours and a dashed mark is the customer's. */
.by { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border: 1px solid var(--ink); }
.by.us { background: var(--ink); }
.by.you { border-color: var(--stone); border-style: dashed; }
/* In a table that compares, a full mark has it, a half mark has part of it, and an empty mark has none. Each mark carries its meaning as its label, for a reader that sees no mark. */
.has { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border: 1px solid var(--ink); }
.has.all { background: var(--ink); }
.has.part { border-left-width: 5px; }

/* A card is a link to a page: the icon of its link in the menu, three times its size, its name and one line. */
.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cards a { display: grid; gap: 8px; align-content: start; height: 100%; padding: 24px; background: var(--white); color: var(--stone); text-decoration: none; }
.cards .glyph { margin-bottom: 18px; }
.cards b { color: var(--ink); font-size: 18px; letter-spacing: -0.02em; }
.cards a:is(:hover, :focus-visible) { background: var(--ink); color: var(--white); }
.cards a:is(:hover, :focus-visible) :is(b, .glyph) { color: inherit; }

/*
 * A way on is a link to the page that tells a subject in full: the icon of
 * that page in the menu, its name, and an arrow at its far end. Under the
 * pointer or the keyboard it is an ink block, and its arrow steps on. A row
 * of them closes a band of the home. One opens a figure that has a page of
 * its own, and takes the click of the whole figure.
 */
.way { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 20px; background: var(--white); color: var(--ink); font-weight: 500; text-decoration: none; }
.go { margin-left: auto; }
.way:is(:hover, :focus-visible) { background: var(--ink); color: var(--white); }
:is(.way, .domains a):is(:hover, :focus-visible) .go { translate: 4px 0; }
.ways { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.ways li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* Six ways stand as two rows of three: five in a row would leave the last alone. A narrow window keeps the columns that fit. */
@media (min-width: 861px) { .ways:has(> li:nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 861px) { .ways:has(> li:nth-child(8):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.figures > figure { position: relative; }
.figures > figure > .way { flex: none; margin: -24px -24px 0; border-bottom: 1px solid var(--line); }
.figures > figure > .way::after { content: ""; position: absolute; inset: 0; }
.figures > figure > .way + * { flex: 1; }
/* The way on is the title of its figure, so the caption under it is its text alone. */
.figures > figure > .way ~ figcaption { min-height: 63px; }

/* A file or a terminal: its name over its text. Several stand in one column. */
.code { display: grid; gap: 18px; align-content: start; min-width: 0; }
.file { display: grid; gap: 8px; min-width: 0; }
.file pre { tab-size: 4; }
/* Steps, one under the other. A step that is a command shows it over its text. */
.steps { display: grid; gap: 16px; align-content: start; }
.steps code { display: block; color: var(--ink); margin-bottom: 4px; }
.codes :is(th, td):first-child { white-space: nowrap; }
.codes td code + code { display: block; margin-top: 4px; }

/* A table of whose a thing is keeps each owner on one line. A row head that is a sentence breaks as text does. */
.whose td:nth-child(2) { white-space: nowrap; }
.sentences th[scope="row"] { white-space: normal; min-width: 13rem; }

/*
 * A page of the showcase breaks a schema down: the layers of each entity,
 * its roles, its atoms and its connections, then the file whole, in a box
 * that scrolls. The name of an entity stands at the top of its layers.
 */
.model th[rowspan] { vertical-align: top; }
.model td:last-child { min-width: 14rem; }
.file pre.long { max-height: 34rem; overflow: auto; }

/* The path of a run: one row for each step, on a rail. */
.path { position: relative; list-style: none; padding: 0; display: grid; gap: 22px; }
.path > .rule { position: absolute; left: 8px; top: 9px; bottom: 9px; width: 1px; background: var(--stone); transform-origin: top; }
.path li { display: grid; grid-template-columns: 18px 6.5rem minmax(0, 1fr); column-gap: 16px; align-items: center; }
.path .state { position: relative; width: 12px; height: 12px; padding: 3px; box-sizing: content-box; background: var(--white); }
.path b { font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; }
/* A screen of the product, drawn with the styles of web/ui. Its buttons show, and take no click. */
.screen { display: grid; gap: 18px; align-content: start; border: 1px solid var(--ink); padding: 20px; }
/* The shape of a state stands before its name, wherever a screen says a state. The rule finds the shape by the symbol that it draws, so it never takes the mark of the lockup. */
.screen svg:where(:has(> use[href^="#s-"])) { display: inline-block; width: 10px; height: 10px; margin-right: 8px; vertical-align: -1px; }
/* The buttons of a screen wrap. */
.screen .acts { display: flex; flex-wrap: wrap; gap: 8px; }
/* A digest, an identifier or an address breaks where its line ends. In a cell a short identifier or a name stays on one line, and a cell that holds a digest says so. */
.screen code { overflow-wrap: anywhere; }
.screen td:not(.digest) code { overflow-wrap: normal; white-space: nowrap; }
/* The facts of a screen: a value takes what its term leaves. On a narrow window a fact stands under its term. */
.screen dl { grid-template-columns: max-content minmax(0, 1fr); }
@media (max-width: 560px) {
  .screen dl { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
  .screen dd + dt { margin-top: 8px; }
}
/* A thing of a screen and what stands beside it on its line: a heading with its state or a button, the identifier of a run with its state. */
.screen .row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; min-width: 0; }
/* A count stands at the right of its column, as in the back office. */
.screen .num { text-align: right; }
/* A choice stands on one line with its mark, at the height of the field beside it. */
.screen .pick { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 6px; }
/* A form in a part of a screen: a field under its name. */
.screen .form { display: grid; gap: 16px; }
.screen .form label { display: grid; gap: 6px; }
/*
 * A whole screen of the back office is the frame of the app, as its shell
 * draws it: the bar, the navigation, then one page. It is a picture: it has
 * role="img", a label that says what it shows, and inert, so nothing in it
 * takes a click or the focus. Every element in it keeps the style of web/ui:
 * these rules place the parts of the frame, and nothing else.
 */
.screen.app { display: block; padding: 0 20px; background: var(--white); }
.app-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 12px 0; border-bottom: 1px solid var(--ink); }
.app-bar .lockup { font-size: 17px; color: var(--ink); }
.app-bar > :nth-child(2) { flex: 1; }
.app-body { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 20px 32px; padding: 20px 0 24px; }
.app-nav, .app-side { display: grid; gap: 8px; align-content: start; }
:is(.app-nav, .app-side) ul { list-style: none; padding: 0; display: grid; gap: 8px; }
:is(.app-nav, .app-side) ul ul { margin-top: 8px; padding-left: 12px; border-left: 1px solid var(--line); }
.app-page { display: grid; gap: 16px; align-content: start; min-width: 0; }
.app-page .crumbs { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0 8px; }
.app-page .crumbs li + li::before { content: "/"; margin-right: 8px; }
.app-page .tabs { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.app-page .head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 16px; }
.app-page .head > div:first-child { display: grid; gap: 4px; }
.app-page .tools { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 12px; }
.app-page .tools label { display: grid; gap: 6px; }
.app-page .tools .grow { flex: 1; min-width: 12rem; }
.app-page .split { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 20px 32px; }
.app-page .split > :last-child { display: grid; gap: 14px; align-content: start; min-width: 0; }
.app-page .chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); padding: 2px 8px; }
/* The shape of a state, before its name in a cell. */
.table td svg { display: inline-block; width: 10px; height: 10px; margin-right: 8px; vertical-align: -1px; }

/* The two numbers of a run. */
.numerals { display: grid; grid-template-columns: 1fr 1fr; border-block: 1px solid var(--line); }
.numerals > div { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 4px 24px 20px 0; }
.numerals > div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.numeral { font: 600 clamp(150px, 23vw, 330px)/0.8 var(--sans); letter-spacing: -0.07em; color: var(--ink); }

/* One run, from its proposal to going back. */
.track { position: relative; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.track > .rule { position: absolute; left: 0; right: 0; top: 37px; height: 1px; background: var(--ink); transform-origin: left; }
.track li { display: grid; grid-template-areas: "time" "mark" "title" "text"; grid-template-rows: 18px 18px auto auto; row-gap: 10px; align-content: start; padding-right: 28px; }
.track time { grid-area: time; font: 500 12px/18px var(--mono); color: var(--stone); font-variant-numeric: tabular-nums; }
.track .state { grid-area: mark; position: relative; width: 12px; height: 12px; padding: 3px; box-sizing: content-box; margin-left: -3px; background: var(--white); }
.track b { grid-area: title; font-size: 16px; letter-spacing: -0.01em; }
.track p { grid-area: text; }

/* A figure that joins boxes: the ends, the hub they meet at, and the wires between. With out, the hub comes first. */
.wired { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(72px, 0.7fr) minmax(0, 1fr); align-items: center; }
.wired .wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.wires path { fill: none; stroke: var(--ink); stroke-width: 1; }
.ends { list-style: none; padding: 0; display: grid; gap: 16px; grid-column: 1; }
.ends li { display: grid; gap: 6px; border: 1px solid var(--line); background: var(--white); padding: 14px 16px; }
.hub { grid-column: 3; display: grid; gap: 10px; justify-items: start; border: 1px solid var(--ink); background: var(--white); padding: 20px; }
.hub .mark { font-size: 40px; color: var(--ink); }
.hub b { font-size: 20px; letter-spacing: -0.02em; }
.wired.out { grid-template-columns: minmax(0, 1fr) minmax(72px, 0.7fr) minmax(0, 1.2fr); }
.wired.out .hub { grid-column: 1; }
.wired.out .ends { grid-column: 3; gap: 8px; }
.wired.out .ends li { padding-block: 10px; }

/* The domains of an org, one after the other. */
.domains { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.domains li { background: var(--white); }
/* A domain is the way on to its page: the arrow stands in its corner. */
.domains a { position: relative; display: grid; gap: 14px; align-content: start; height: 100%; padding: 24px; color: var(--ink); text-decoration: none; }
.domains .go { position: absolute; top: 24px; right: 24px; }
.domains a:is(:hover, :focus-visible) { background: var(--ink); color: var(--white); }
.domains a:is(:hover, :focus-visible) b { color: inherit; }
.domains .mark { font-size: 56px; margin-bottom: 18px; }
.domains b { font-size: 18px; letter-spacing: -0.02em; }

/* The close: one more way to the pilot. */
.closing { padding-block: 120px 128px; scroll-margin-top: 0; }
.closing .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; align-items: end; }
.closing h2 { font-size: clamp(44px, 7vw, 104px); line-height: 0.95; letter-spacing: -0.055em; }
.closing .lede + .ask { margin-top: 28px; }
.closing .ask { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
.closing .ask input { width: 100%; }
.closing .ask [role="status"] { grid-column: 1 / -1; }
/* Under the form, the way to the briefing, for who is not ready to write. */
.closing .ask + .way { margin-top: 12px; border: 1px solid var(--line); }

/*
 * The footer: the lockup, then a column for each group of pages, a label over
 * its links, then the row of what a site owes its reader: whose it is, and the
 * parts of the page Legal. A link of the footer reads as a tab of the header:
 * the text of the page, with its line under the pointer or the keyboard.
 */
.foot { display: grid; gap: 64px; padding-block: 64px 40px; }
.foot-grid { display: flex; justify-content: space-between; align-items: start; gap: 40px 64px; }
.foot .home { color: var(--ink); font-size: 20px; text-decoration: none; }
.foot nav { display: flex; flex-wrap: wrap; gap: 40px 72px; }
.foot nav > div { display: grid; gap: 14px; align-content: start; }
.foot ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.foot nav a { color: var(--body); text-decoration: none; }
.foot nav a:is(:hover, :focus-visible) { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 40px; }
.foot-legal nav { gap: 8px 26px; }
/* What the foot of every page states of the provider: the notice of the copyright, and where the platform is made. */
.foot-marks { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.foot-marks b { color: var(--ink); font-weight: inherit; }
.foot-legal nav a { color: var(--stone); }

/*
 * The states that motion starts from. site.js adds the class motion to the
 * root, unless the person asks for reduced motion: without it, every figure
 * shows its end.
 */
.motion [data-do="draw"] { stroke-dasharray: 1; stroke-dashoffset: 1; }
.motion [data-do="shape"]:not(.on) { fill-opacity: 0; stroke: var(--ink); stroke-width: 0.25; stroke-dasharray: 1; stroke-dashoffset: 1; }
.motion :is([data-do="snap"], [data-do="callout"]):not(.on) { visibility: hidden; }
.motion [data-do="rule"]:not(.on) { scale: 0 1; }
.motion [data-do="light"]:not(.on) .mark { color: var(--line); }
.motion .path > [data-do="rule"]:not(.on) { scale: 1 0; }

@media (max-width: 1080px) {
  .top nav { gap: 18px; }
  .hero-body { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .resolve { --m: min(360px, 44vw); }
  .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .screen.app { padding: 0 12px; }
  .app-nav { display: none; }
  .app-body, .app-page .split { grid-template-columns: minmax(0, 1fr); }
  .wrap { padding-inline: 20px; }
  /* The header is two rows: the lockup and the main action, then the tabs. Only the row of the tabs stays at the top of the window. */
  :root { --bar: 44px; }
  :root:has(.sections) { --bar: 88px; }
  .bar { top: -49px; }
  .top { flex-wrap: wrap; gap: 0 20px; height: auto; }
  .top .home, .top .act { display: flex; align-items: center; height: 48px; }
  .top nav { order: 3; box-sizing: border-box; width: calc(100% + 12px); height: 45px; margin-inline: -6px; border-top: 1px solid var(--line); gap: 2px; justify-content: space-between; overflow-x: auto; scrollbar-width: none; }
  .top nav > :is(a, button) { flex: none; margin-inline: 0; padding-inline: 6px; }
  /* The row of the tabs has no room for the triangle of a tab that opens a menu. */
  .top nav > button::after { content: none; }
  .top .act { border-left: 0; padding-left: 0; }
  .sections .wrap { gap: 22px; }
  .sheet:popover-open { grid-template-columns: minmax(0, 1fr); }
  .sheet > div { padding: 16px 8px 12px; }
  .sheet > .aside { border-left: 0; border-top: 1px solid var(--line); }
  .sheet > .across, .sheet:has(.across) > .aside { grid-column: auto; grid-row: auto; }
  .sheet > .across { padding-top: 16px; }
  .sheet > .across ul { grid-template-columns: minmax(0, 1fr); }
  /* On a narrow window a menu is its icons and its titles alone: the line of text of each stays for a wide one. */
  .sheet a { padding-block: 9px; align-items: center; }
  .sheet a span { display: none; }
  .sheet a b { align-self: center; }
  .sheet .icon { grid-row: 1; padding: 0; border: 0; background: none; }
  .hero-body { padding-block: 32px 56px; }
  .lede { font-size: 17px; }
  .ask input { width: 100%; }
  .ask label { flex: 1 1 14rem; }
  .resolve { --m: min(320px, 76vw); }
  .resolve .stage { grid-template-columns: minmax(0, 1fr); row-gap: 28px; justify-items: center; }
  .callouts { order: 1; width: 100%; display: grid; gap: 16px; }
  .callouts li { position: relative; top: auto; right: 0; grid-template-rows: 22px auto; }
  .callouts .rule { top: 22px; }
  .callouts b { font-size: 16px; }
  .band { grid-template-columns: minmax(0, 1fr); row-gap: 16px; padding-block: 48px; }
  .band > h3 { position: static; }
  .intro, .closing .wrap { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .figures, .figures.three, .cards, .cards.four { grid-template-columns: minmax(0, 1fr); }
  .figures > figure.wide { flex-direction: column; align-items: stretch; gap: 22px; }
  .cards a { padding: 16px; }
  .path li { grid-template-columns: 18px minmax(0, 1fr); row-gap: 2px; }
  .path li b { grid-column: 2; }
  /* A narrow table wraps its cells before it scrolls. */
  .table th { white-space: normal; }
  .model, .roles { min-width: 720px; }
  .figures > figure { padding: 16px; }
  .figures > figure > .way { margin: -16px -16px 0; }
  .figures figcaption { min-height: 0; }
  .domains { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .domains a { padding: 16px; }
  .domains .go { top: 16px; right: 16px; }
  .domains .mark { font-size: 40px; margin-bottom: 8px; }
  .numerals > div { padding-right: 12px; }
  .numerals > div + div { padding-left: 12px; }
  .track { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .track > .rule { left: 8px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; transform-origin: top; }
  .motion .track > [data-do="rule"]:not(.on) { scale: 1 0; }
  .track li { grid-template-areas: "mark time" ". title" ". text"; grid-template-columns: 18px minmax(0, 1fr); grid-template-rows: auto; column-gap: 14px; row-gap: 6px; padding-right: 0; }
  .wired, .wired.out { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .hub, .wired.out .ends { grid-column: 1; }
  .closing { padding-block: 72px 80px; }
  .closing .ask { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { flex-direction: column; }
}

/* On a phone the five tabs keep less room beside each, so the last one is not cut. */
@media (max-width: 389px) {
  .top nav { width: calc(100% + 8px); margin-inline: -4px; gap: 0; }
  .top nav > :is(a, button) { padding-inline: 4px; }
}

/* The decks: the pitch deck for investors and the briefing for buyers. */
/*
 * The deck: slides one under the other, each a plate of sixteen by nine with a
 * label, a title and a body at its foot. Present shows one slide at a time
 * over the whole window, at the size it is drawn for, 1200 by 675, scaled to
 * fit. Print gives one slide a page.
 */
.deck { display: grid; gap: 24px; padding-block: 56px 96px; }
.slide { position: relative; display: grid; grid-template-rows: auto auto minmax(0, 1fr); row-gap: 18px; aspect-ratio: 16 / 9; padding: 48px 56px; border: 1px solid var(--line); background: var(--white); color: var(--body); }
.slide > h2 { font-size: clamp(28px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -0.045em; max-width: 17em; }
.slide-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: end; align-self: end; min-width: 0; }
.slide-body.one { grid-template-columns: minmax(0, 1fr); }
.slide-body.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.slide-body > div { display: grid; gap: 18px; align-content: end; min-width: 0; }
.slide .lede { font-size: 18px; max-width: 29em; }
.slide .drawing { width: 100%; height: auto; display: block; }
.slide .way { justify-self: start; min-width: 17rem; border: 1px solid var(--line); }
.slide :is(.who, .needs, .asks) th[scope="row"] { white-space: normal; width: 22%; }
.slide .needs th[scope="row"] { width: 28%; }
.slide .asks th[scope="row"] { width: 34%; }
.slide .pair td { width: 50%; }
.tiles { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tiles li { display: grid; gap: 8px; align-content: start; padding: 20px; background: var(--white); }
.tiles b { font-size: 18px; line-height: 1.25; letter-spacing: -0.02em; }
.points { list-style: none; padding: 0; display: grid; gap: 14px; font-size: 17px; }
.points li { position: relative; padding-left: 22px; }
.points li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 9px; height: 9px; background: var(--ink); }
/* A deck for several audiences: an element names its audience in data-for, and the script hides it for the others. Present, the rail and print follow what shows. */
.slide[hidden] { display: none; }
/* The cover is a slide of the deck that only Present and print show: on the page, the hero is the cover. */
.cover { display: none; }
.cover-lockup { justify-items: end; color: var(--ink); font-size: 84px; }
.hero .cover-mark { display: grid; place-items: center; color: var(--ink); font-size: min(300px, 24vw); }
/* The steps of a path, on one rail: the mark of each state, its name and one sentence. */
.run { position: relative; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.run::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 1px; background: var(--ink); }
.run.three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; }
.run li { display: grid; gap: 12px; align-content: start; padding-right: 32px; }
.run .state { position: relative; width: 12px; height: 12px; padding: 3px; box-sizing: content-box; margin-left: -3px; background: var(--white); }
.run b { font-size: 19px; letter-spacing: -0.01em; }
/* The rail of Present: a square for each slide, the one that shows filled. It reads on ink and on white. */
.deck-rail { display: none; }
.deck.presenting { position: fixed; inset: 0; z-index: 20; display: block; max-width: none; margin: 0; padding: 0; overflow: hidden; background: var(--site-ink); }
.deck.presenting > .slide { display: none; }
.deck.presenting > .slide.here { position: absolute; left: 50%; top: 50%; display: grid; width: 1200px; height: 675px; aspect-ratio: auto; border: 0; translate: -50% -50%; scale: var(--k, 1); }
.deck.presenting .slide > h2 { font-size: 56px; }
.deck.presenting .deck-rail { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; mix-blend-mode: difference; }
.deck-rail button { display: grid; place-items: center; width: 20px; height: 20px; min-height: 0; padding: 0; border: 0; background: none; translate: none; }
.deck-rail button::before { content: ""; width: 9px; height: 9px; border: 1px solid var(--site-white); }
.deck-rail button[aria-current]::before { background: var(--site-white); }
/* A narrow window stacks the two columns of a slide, and a slide is as tall as it needs. Print and Present keep the slide as it is drawn. */
@media screen and (max-width: 860px) {
  .deck:not(.presenting) .slide { aspect-ratio: auto; padding: 24px 20px; row-gap: 14px; }
  .deck:not(.presenting) :is(.slide-body, .slide-body.even) { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .deck:not(.presenting) :is(.tiles, .run) { grid-template-columns: minmax(0, 1fr); }
  .deck:not(.presenting) .run { row-gap: 22px; }
  .deck:not(.presenting) .run::before { left: 5.5px; right: auto; top: 9px; bottom: 9px; width: 1px; height: auto; }
  .deck:not(.presenting) .run li { grid-template-columns: 18px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; padding-right: 0; }
  .deck:not(.presenting) .run li > :not(.state) { grid-column: 2; }
  .deck:not(.presenting) .run .state { margin-left: -3px; }
}
@media print {
  @page { size: 1200px 675px; margin: 0; }
  .bar, .hero, .closing, .foot, .deck-rail { display: none; }
  .deck { display: block; max-width: none; padding: 0; }
  .slide, .cover { display: grid; width: 1200px; height: 675px; aspect-ratio: auto; border: 0; break-after: page; break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .slide > h2 { font-size: 56px; }
}
