/* =========================================================================
   Lasagna - design system
   Identity: laboratory instrument panel. Paper and ink, hairline rules,
   registration marks, monospaced chrome, numbered sections.

   Paper and ink are cream and the app tile's own dark blue, inverted
   between the two modes: cream page with #111827 type in the light, and
   the same two swapped in the dark. #111827 is the ground the four app
   marks are drawn on, so an icon dropped into either mode belongs there
   rather than sitting in a box of its own.

   The whole grey ramp is interpolated between those two poles, which is
   why the greys are cool. The set before this was warm - a brown-black
   #191713 ink on cream, #100e0c paper in the dark - and a warm grey beside
   a blue-black reads as a mistake, so none of it survived.

   Colour is SimplIFy's: one pair, cyan and magenta, accents only and never
   body text. There used to be a fluorophore channel per app - green,
   amber, violet, cyan, swapped in by [data-accent] - and there is not any
   more. The four app marks all wear the same two colours, so the site
   wears them too.
   ========================================================================= */

/* ---------- tokens ---------- */
:root {
  color-scheme: light dark;

  /* cream -> #111827, the ramp every neutral is a point on.
     Contrast on --paper: ink 16.6:1, ink-2 9.0:1, muted 4.6:1. */
  --paper:        #faf7f1;
  --paper-2:      #f2efea;
  --surface:      #ffffff;
  --ink:          #111827;
  --ink-2:        #3f454f;
  --muted:        #6d7077;
  --faint:        #919296;
  --rule:         #e0dedb;
  --rule-strong:  #cbcac9;

  /* ---- the accent pair ----------------------------------------------
     The marks' own cyan #00c9d6 and magenta #ff4fd1 were picked for the
     tile: on this cream they measure 1.9:1 and 2.7:1, so as a link or
     small text they are unreadable. These are those two darkened to carry
     on cream - same hues to within a degree (184.7 vs 183.6, 315.8 vs
     315.7), and deliberately matched to each other in luminance (.1456 and
     .1474) so the pair stays a pair. Both clear 4.5:1 as text and both
     take white on top, which is what --on-accent relies on.

     They are accents: links, buttons, chips, the one line above the
     headline. Body text is --ink. */
  --accent:        #0b767f;   /* cyan    - 5.0:1 on cream, white on it 5.4:1 */
  --accent-2:      #c61497;   /* magenta - 5.0:1 on cream, white on it 5.3:1 */
  --accent-soft:   #daf1ed;
  --accent-2-soft: #fae9ee;
  --on-accent:     #ffffff;
  --on-accent-2:   #ffffff;

  /* ---- the marks' own palette, the same in both themes ----------------
     Every app mark and every scene is drawn on the #111827 tile, so these
     are literal, not theme-aware: a scene is an enlargement of the mark
     and has to be the same drawing in light and dark. --mark-tile is the
     dark mode's --paper, which is the point: in the dark the tile stops
     being a tile and the glyph simply sits on the page. */
  --mark-tile: #111827;
  --mark-cyan: #00c9d6;
  --mark-mag:  #ff4fd1;
  --mark-grey: #6f6b7e;
  --mark-edge: #9a96b0;
  --mark-rule: #4a4660;

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(17,24,39,.06), 0 8px 24px -16px rgba(17,24,39,.26);
}

/* The same ramp walked the other way: #111827 -> cream. In the dark the
   marks' own two colours need no darkening at all - they measure 8.7:1 and
   6.2:1 on this ground, which is what they were drawn for. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:        #111827;
    --paper-2:      #1b2230;
    --surface:      #222936;
    --ink:          #faf7f1;
    --ink-2:        #cdccca;
    --muted:        #9a9c9e;
    --faint:        #75787e;
    --rule:         #323743;
    --rule-strong:  #494e57;

    --accent:        #00c9d6;
    --accent-2:      #ff4fd1;
    --accent-soft:   #0e3846;
    --accent-2-soft: #3c2246;
    --on-accent:     #111827;
    --on-accent-2:   #111827;

    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px -18px rgba(0,0,0,.8);
  }
}

:root[data-theme="dark"] {
  --paper:        #111827;
  --paper-2:      #1b2230;
  --surface:      #222936;
  --ink:          #faf7f1;
  --ink-2:        #cdccca;
  --muted:        #9a9c9e;
  --faint:        #75787e;
  --rule:         #323743;
  --rule-strong:  #494e57;

  --accent:        #00c9d6;
  --accent-2:      #ff4fd1;
  --accent-soft:   #0e3846;
  --accent-2-soft: #3c2246;
  --on-accent:     #111827;
  --on-accent-2:   #111827;

  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px -18px rgba(0,0,0,.8);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--accent); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- type ---------- */
h1, h2, h3, h4 {
  font-weight: 620;
  letter-spacing: -0.028em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 1.5rem + 3.4vw, 4.1rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.4rem); }
h3 { font-size: 1.16rem; letter-spacing: -0.018em; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.06rem, 1rem + .5vw, 1.3rem);
  line-height: 1.52;
  color: var(--ink-2);
  text-wrap: pretty;
}

.mono {
  font-family: var(--font-mono);
  font-size: .715rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
}

.eyebrow {
  font-size: .82rem;
  font-weight: 560;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: .5em;
}
.eyebrow .num { display: none; }

.measure { max-width: 62ch; }
.measure-tight { max-width: 52ch; }

/* ---------- layout ---------- */
.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(56px, 7vw, 108px);
  border-top: 1px solid var(--rule);
  position: relative;
}
.section--flush { border-top: 0; }

/* One column, label sitting on top of its own heading. This used to be a
   sticky numbered side column; it read like a datasheet, which is not what
   this is. */
.split { display: block; }
.split__label { margin-bottom: 14px; }

.seclabel {
  margin: 0;
  font-size: .82rem;
  font-weight: 560;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent);
}

.stack > * + * { margin-top: 18px; }
.stack-lg > * + * { margin-top: 34px; }

/* registration-mark frame: the recurring motif */
.reg {
  position: relative;
  border: 1px solid var(--rule);
  background: var(--surface);
  border-radius: var(--radius);
}
.reg--marks::before, .reg--marks::after {
  content: "";
  position: absolute;
  width: 9px; height: 9px;
  border: 1px solid var(--rule-strong);
  pointer-events: none;
}
.reg--marks::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.reg--marks::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header__in {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-size: 1.04rem;
  letter-spacing: -.028em;
  font-weight: 640;
  white-space: nowrap;
}
.brand svg { width: 22px; height: 22px; flex: none; }
.brand span.sub { color: var(--muted); font-weight: 400; letter-spacing: .08em; }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: -.01em;
  text-decoration: none;
  color: var(--muted);
  padding: 7px 11px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--accent);
  margin-top: 3px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--muted);
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  margin-left: 6px;
  flex: none;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--rule-strong); }
.theme-toggle svg { width: 15px; height: 15px; }
.theme-toggle .ico-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .ico-light { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .ico-dark  { display: block; }
}
:root[data-theme="dark"] .theme-toggle .ico-light { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-dark  { display: block; }
:root[data-theme="light"] .theme-toggle .ico-light { display: block; }
:root[data-theme="light"] .theme-toggle .ico-dark  { display: none; }

/* On a phone the brand itself is the way home, so the "Apps" link goes first
   and the first-launch guide - the page people actually need - stays. */
@media (max-width: 720px) {
  .nav a.nav-hide-sm { display: none; }
  .nav { gap: 0; }
  .nav a { font-size: .66rem; letter-spacing: .06em; padding: 7px 7px; }
  .brand { font-size: .72rem; letter-spacing: .08em; gap: 8px; }
  .theme-toggle { margin-left: 2px; }
}
@media (max-width: 560px) {
  .brand span.sub { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-sans);
  font-size: .94rem;
  font-weight: 540;
  letter-spacing: -0.01em;
  padding: 11px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex: none; }

.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--ink-2); }

.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { filter: brightness(1.07); }

.btn--ghost {
  border-color: var(--rule-strong);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover { background: var(--paper-2); }

.btn--disabled {
  background: transparent;
  border: 1px dashed var(--rule-strong);
  color: var(--faint);
  cursor: not-allowed;
  pointer-events: none;
}
.btn--sm { padding: 8px 13px; font-size: .86rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.textlink {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  padding-bottom: 1px;
  transition: border-color .15s;
}
.textlink:hover { border-bottom-color: var(--accent); }

.arrowlink {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.arrowlink::after { content: "\2192"; transition: transform .15s; }
.arrowlink:hover::after { transform: translateX(3px); }

/* ---------- chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 540;
  letter-spacing: 0;
  text-transform: none;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  color: var(--muted);
  background: var(--paper-2);
  white-space: nowrap;
}
/* One accent for every app now, so the chips can no longer be told apart by
   hue alone: "available" takes the accent and "coming soon" stays neutral,
   which is a truer reading of the two states anyway. */
.chip--soon { color: var(--muted); border-color: var(--rule-strong); background: var(--paper-2); }
.chip--live { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); }
.chip .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(48px, 6.5vw, 96px) clamp(44px, 5vw, 76px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
}
.hero h1 { margin-block: 18px 22px; }
.hero__figure { position: relative; }

.kbd-note {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--faint);
  letter-spacing: .04em;
}

/* ---------- app cards ---------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(276px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.app-card {
  background: var(--surface);
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  text-decoration: none;
  position: relative;
  transition: background .18s;
  min-height: 100%;
}
.app-card:hover { background: var(--paper-2); }
.app-card__top { display: flex; align-items: center; gap: 11px; }
.app-card__icon { width: 30px; height: 30px; color: var(--accent); flex: none; }
.app-card__name { font-size: 1.22rem; font-weight: 620; letter-spacing: -.028em; }
.app-card__tag { color: var(--ink-2); font-size: .95rem; line-height: 1.5; flex: 1; }
.app-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }

/* ---------- feature list ---------- */
.feat {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 1px;
  /* the hairlines are painted by the cells, not by a background showing
     through the gaps: a row that does not divide evenly then ends in paper
     rather than in a block of grey */
  background: var(--paper);
  border-block: 1px solid var(--rule);
}
.feat__item {
  background: var(--paper);
  padding: 26px 24px 28px;
  box-shadow: 1px 0 0 var(--rule), 0 1px 0 var(--rule);
}
.feat__item h3 { margin-bottom: 8px; }
.feat__item p { color: var(--muted); font-size: .95rem; line-height: 1.55; }
.feat__n { display: none; }

/* ---------- figures ---------- */
.figures { display: grid; gap: 22px; }
@media (min-width: 880px) { .figures--3 { grid-template-columns: repeat(3, 1fr); } }

figure.fig { margin: 0; }
figure.fig .fig__frame {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
figure.fig .fig__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
figure.fig .fig__bar .dots { display: flex; gap: 4px; }
figure.fig .fig__bar .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--rule-strong); display: block; }
figure.fig svg { width: 100%; height: auto; display: block; }
figure.fig figcaption {
  margin-top: 11px;
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.5;
}

.illus-note {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
  border: 1px dashed var(--rule-strong);
  border-radius: 3px;
  padding: 3px 7px;
  display: inline-block;
}

/* ---------- spec table ---------- */
.spec { border-top: 1px solid var(--rule); }
.spec__row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.spec__row dt {
  font-size: .93rem;
  font-weight: 540;
  color: var(--muted);
}
.spec__row dd { margin: 0; color: var(--ink-2); font-size: .97rem; }
@media (max-width: 680px) {
  .spec__row { grid-template-columns: 1fr; gap: 5px; }
}

.tbd {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--faint);
  border-bottom: 1px dotted var(--rule-strong);
}

/* ---------- download blocks ---------- */
.dl {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.dl__head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.dl__head .os {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
}
.dl__body { padding: 6px 20px 18px; }

.dl-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}
.dl-row:last-child { border-bottom: 0; }
.dl-row__icon { width: 26px; height: 26px; color: var(--accent); flex: none; }
.dl-row__main { flex: 1 1 200px; min-width: 0; }
.dl-row__name { font-weight: 580; letter-spacing: -.02em; display: block; }
.dl-row__meta { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; color: var(--faint); margin-top: 3px; display: block; }

/* A caution attached to one build. Deliberately not red: it is something to
   read before installing, not an error, and the download page already carries
   an unsigned-software chip on every panel. */
.dl-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 8px;
  max-width: 54ch;
  font-size: .86rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.dl-note svg { width: 15px; height: 15px; flex: none; margin-top: .18em; color: var(--accent-2); }
.dl-note-slot { display: block; }
.dl-note-slot[hidden] { display: none; }
.btn-row + .dl-note, .btn-row + .dl-note-slot .dl-note { margin-top: 16px; }

.os-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .93rem;
  color: var(--muted);
  padding: 13px 18px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-2);
  flex-wrap: wrap;
}
.os-banner strong { color: var(--ink); font-weight: 600; }
.os-banner button {
  font: inherit;
  font-weight: 540;
  background: none;
  border: 0;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  text-decoration: underline;
  text-underline-offset: 3px;
}

[hidden] { display: none !important; }

/* ---------- steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 26px 54px;
  border-left: 1px solid var(--rule);
  margin-left: 15px;
}
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: -15px;
  top: -2px;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .02em;
  color: var(--accent);
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: .96rem; }
.steps strong { color: var(--ink); font-weight: 600; }

.callout {
  border: 1px solid var(--rule);
  border-left: 2px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 20px;
}
.callout .mono { color: var(--accent); display: block; margin-bottom: 7px; }
.callout p { color: var(--ink-2); font-size: .95rem; }

.panel {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px 24px;
}

code, kbd {
  font-family: var(--font-mono);
  font-size: .86em;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1px 5px;
}
kbd { font-size: .8em; }
pre {
  font-family: var(--font-mono);
  font-size: .82rem;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 13px 15px;
  overflow-x: auto;
  margin: 0;
}
pre code { background: none; border: 0; padding: 0; font-size: inherit; }

details.tshoot {
  border-top: 1px solid var(--rule);
  padding: 15px 0;
}
details.tshoot summary {
  cursor: pointer;
  font-weight: 560;
  letter-spacing: -.015em;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
details.tshoot summary::-webkit-details-marker { display: none; }
details.tshoot summary::before {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent);
  width: 14px;
  flex: none;
}
details.tshoot[open] summary::before { content: "\2212"; }
details.tshoot .tshoot__body { padding: 12px 0 2px 24px; color: var(--muted); font-size: .95rem; }
details.tshoot .tshoot__body p { margin-bottom: .7em; }

/* ---------- breadcrumb ---------- */
.crumb {
  font-size: .85rem;
  color: var(--faint);
  display: flex;
  gap: 8px;
  align-items: center;
  padding-top: 26px;
}
.crumb a { text-decoration: none; color: var(--muted); }
.crumb a:hover { color: var(--ink); }

/* ---------- app hero ---------- */
.apphero { padding-block: 26px clamp(40px, 5vw, 64px); }
.apphero__top { display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.apphero__icon { width: 46px; height: 46px; color: var(--accent); flex: none; }
.apphero h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); }

/* ---------- next / prev ---------- */
.app-switch {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}
.app-switch a {
  background: var(--paper);
  padding: 18px 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 11px;
  transition: background .15s;
}
.app-switch a:hover { background: var(--surface); }
.app-switch svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.app-switch .nm { font-weight: 560; letter-spacing: -.02em; font-size: .97rem; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--paper-2);
  padding-block: 44px 40px;
  margin-top: 0;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: 32px;
}
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
.site-footer h4 {
  font-size: .86rem;
  color: var(--faint);
  font-weight: 560;
  margin-bottom: 12px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { text-decoration: none; color: var(--muted); font-size: .92rem; }
.site-footer a:hover { color: var(--ink); }
.site-footer__note { color: var(--muted); font-size: .9rem; line-height: 1.55; max-width: 38ch; margin-top: 12px; }
.site-footer__base {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .84rem;
  color: var(--faint);
}

/* ---------- misc ---------- */
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 10px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 9px 14px;
  border-radius: 4px;
}

.ticks {
  display: none;
  gap: 4px;
  align-items: center;
  margin-top: 14px;
}
.ticks i { display: block; width: 1px; height: 8px; background: var(--rule-strong); }
.ticks i:nth-child(5n+1) { height: 14px; background: var(--accent); }

.kv-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.kv-list li { display: flex; gap: 11px; align-items: flex-start; color: var(--ink-2); font-size: .97rem; line-height: 1.5; }
.kv-list li::before {
  content: "";
  width: 6px; height: 6px;
  border: 1px solid var(--accent);
  margin-top: .52em;
  flex: none;
  transform: rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- about ---------- */

/* Additional resources: a link and a line about it, on the same hairline
   rhythm as the rest of the page. */
.res-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; max-width: 68ch; }
.res-list li {
  display: grid;
  gap: 6px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}
.res-list li:last-child { border-bottom: 1px solid var(--rule); }
.res-list__name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
  width: fit-content;
}
.res-list__name svg { width: 15px; height: 15px; color: var(--accent); flex: none; }
.res-list__name:hover { color: var(--accent); }
.res-list__note { color: var(--ink-2); font-size: .97rem; line-height: 1.55; }

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 860px) {
  .about-hero { grid-template-columns: 1fr; }
  .about-hero figure.portrait { max-width: 320px; }
}

.about-role {
  font-size: 1.02rem;
  color: var(--muted);
  margin: 14px 0 0;
}

figure.portrait {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
}
figure.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* a touch of warmth so a snapshot sits inside the palette rather than fighting it */
  filter: saturate(.92) contrast(1.02);
}

.portrait__empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 28px 22px;
  color: var(--faint);
  border: 1px dashed var(--rule-strong);
  border-radius: var(--radius);
}
.portrait__empty svg { width: 64px; height: 80px; color: var(--rule-strong); }
.portrait__empty p { margin: 0; font-size: .82rem; line-height: 1.5; }
.portrait__empty .mono { color: var(--muted); }
.portrait__empty code { font-size: .78em; }

/* ---------- download dialog ---------- */
dialog.dlg {
  width: min(560px, calc(100vw - 32px));
  max-height: min(88vh, 760px);
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 70px -24px rgba(0,0,0,.45);
  overflow: auto;
}
dialog.dlg::backdrop {
  background: color-mix(in srgb, var(--ink) 48%, transparent);
  backdrop-filter: blur(3px);
}
dialog.dlg h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.85rem); margin-bottom: 12px; }
.dlg__lede { color: var(--ink-2); font-size: .98rem; line-height: 1.55; }
.dlg__x { position: absolute; top: 10px; right: 12px; }
.dlg__x button {
  background: none; border: 0; color: var(--faint); font-size: 1.5rem;
  line-height: 1; cursor: pointer; padding: 4px 8px; border-radius: 4px;
}
.dlg__x button:hover { color: var(--ink); background: var(--paper-2); }
.dlg__fine { margin-top: 16px; color: var(--faint); font-size: .83rem; line-height: 1.5; }
.dlg__err {
  margin-top: 14px; padding: 10px 13px; font-size: .9rem;
  border: 1px solid color-mix(in srgb, #d14343 55%, transparent);
  background: color-mix(in srgb, #d14343 10%, transparent);
  border-radius: 4px; color: var(--ink);
}

.fld { display: block; margin-top: 16px; }
.fld__label {
  display: block; margin-bottom: 6px;
  font-size: .9rem; font-weight: 540; color: var(--muted);
}
.fld__label em { font-style: normal; color: var(--faint); letter-spacing: .08em; }
.fld input, .fld textarea, .fld select {
  width: 100%; font: inherit; font-size: .97rem;
  padding: 10px 12px;
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule-strong); border-radius: 4px;
}
.fld textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.fld input::placeholder, .fld textarea::placeholder { color: var(--faint); }
.fld input:focus-visible, .fld textarea:focus-visible, .fld select:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}

/* The honeypot. Off-screen rather than display:none, because some bots skip
   what is plainly hidden; aria-hidden and tabindex="-1" keep it away from
   anyone using a screen reader or the keyboard. */
.hp {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fld-row .fld { margin-top: 16px; }
@media (max-width: 520px) { .fld-row { grid-template-columns: 1fr; gap: 0; } }

.chk { display: flex; gap: 11px; align-items: flex-start; margin-top: 18px; cursor: pointer; }
.chk input { margin-top: .25em; accent-color: var(--accent); flex: none; width: 15px; height: 15px; }
.chk span { color: var(--muted); font-size: .89rem; line-height: 1.5; }

/* lab photo: the whole frame, at the shape it was taken in. Unlike the
   portrait this figure imposes no aspect-ratio, because a crop on a group
   photo cuts people out of it; the height follows the file's own ratio, which
   the width/height attributes carry so the box is reserved before it loads. */
figure.labshot {
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
  max-width: 760px;
}
figure.labshot img { width: 100%; height: auto; display: block; }
/* with no photo there is no ratio to follow, so the placeholder gets a box */
figure.labshot--empty { aspect-ratio: 3 / 2; }
/* in the About hero it sits in the narrow column and takes all of it */
.about-hero figure.labshot { max-width: none; }
@media (max-width: 860px) {
  .about-hero figure.labshot { max-width: 520px; }
}
figure.labshot .portrait__empty { border: 0; }

/* The line that sets the tone, above the headline. It used to be the brand
   tomato, which was the one colour on the site that belonged to no app; now
   that the suite is on one pair, it takes the cyan rather than introducing a
   third hue. */
.hero__line {
  margin: 0 0 18px;
  font-size: clamp(1rem, .95rem + .35vw, 1.14rem);
  font-weight: 540;
  letter-spacing: -.012em;
  color: var(--accent);
  max-width: 34ch;
}


/* =========================================================================
   The lasagna. Four layers, one app each, stacked the way the sheets are:
   the scene on the left, the name on the right, and a band of crust at the
   bottom of every layer that the next one sits on. Hovering lifts a layer
   out of the stack and plays its scene. A phone has no hover, so every
   resting state is drawn to stand on its own, and prefers-reduced-motion
   switches the motion off at the bottom of the file.
   ========================================================================= */

.layers { display: flex; flex-direction: column; }

.layer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 34%) minmax(0, 1fr);
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding-bottom: 14px;            /* the crust, which the next layer covers */
  margin-top: -14px;               /* so the sheets sit on one another */
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--surface);
  z-index: var(--z, 1);
  box-shadow: 0 10px 24px -20px rgba(0, 0, 0, .5);
  transition: transform .32s cubic-bezier(.2, .8, .3, 1), box-shadow .32s, border-color .32s;
}
.layer:first-child { margin-top: 0; }

/* the cut edge of the sheet, in the app's own accent */
.layer::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 14px;
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--accent) 24%, var(--surface)),
    color-mix(in srgb, var(--accent) 44%, var(--surface)));
  border-top: 1px solid color-mix(in srgb, var(--accent) 26%, var(--rule));
}

.layer:hover, .layer:focus-visible {
  transform: translateY(-10px);
  z-index: 9;
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 28px 48px -26px color-mix(in srgb, var(--accent) 60%, transparent);
}

.layer__stage {
  align-self: stretch;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-right: 1px solid var(--rule);
  background: var(--mark-tile);
}
.scene { width: 100%; height: auto; display: block; }

.layer__body { padding: 24px 28px; display: flex; flex-direction: column; gap: 9px; }
.layer__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.layer__name { font-size: 1.45rem; font-weight: 640; letter-spacing: -.035em; color: var(--ink); }
.layer__tag { color: var(--ink-2); font-size: 1rem; line-height: 1.55; max-width: 44ch; }
.layer__foot { margin-top: 6px; }

@media (max-width: 760px) {
  .layer { grid-template-columns: 1fr; align-items: start; }
  .layer__stage { border-right: 0; border-bottom: 1px solid var(--rule); }
  .layer__body { padding: 18px 20px 22px; }
  .layer__name { font-size: 1.3rem; }
}

/* hero without a figure beside it: let the headline take the room */
.hero--solo { padding-block: clamp(56px, 8vw, 110px) clamp(40px, 5vw, 70px); }
.hero--solo h1 { max-width: 17ch; }
.hero--solo .lede { max-width: 56ch; }


/* =========================================================================
   The scenes. Each one is the app's own mark enlarged and set moving, so the
   stage behind it is the marks' tile rather than paper: #111827 in both
   themes, which is what the drawings were coloured for and the only ground
   SimplIFy's white intersection exists on. One drawing, both themes, nothing
   retinted. The resting state is the picture; the motion is a bonus a phone
   never needs.
   ========================================================================= */

/* ---- SimplIFy: the two channels cross, and the panel comes out of them ----
   Three alternatives live in scenes.mjs; whichever one is wired up, it rests
   in the state the mark draws and the hover is what differs. The channels are
   rects with a full corner radius, so squaring them off is an animated rx. */
.scene--cross .ch,
.scene--panel .ch,
.scene--grid  .ch,
.scene--panel .tile,
.scene--grid  .tile,
.scene--panel .lens,
.scene--grid  .lens {
  transform-box: fill-box;
  transform-origin: center;
}
.scene--panel .ch, .scene--grid .ch { rx: 34px; }

/* A. nothing but the mark, moving: the channels travel in and cross */
.scene--cross .ch { transform-box: fill-box; transform-origin: center; }
:is(.layer:hover, .layer:focus-visible) .scene--cross .ch--c { animation: ch-in-c 1.05s cubic-bezier(.3, .7, .25, 1) both; }
:is(.layer:hover, .layer:focus-visible) .scene--cross .ch--m { animation: ch-in-m 1.05s cubic-bezier(.3, .7, .25, 1) both; }
:is(.layer:hover, .layer:focus-visible) .scene--cross .lens  { animation: lens-in .5s ease .55s both; }
@keyframes ch-in-c { from { transform: translate(-64px, -20px) } to { transform: none } }
@keyframes ch-in-m { from { transform: translate(64px, 20px) }   to { transform: none } }
@keyframes lens-in { from { opacity: 0 } to { opacity: 1 } }

/* B and C. the crossed channels square off and walk out into a figure panel */
.scene--panel .ch, .scene--panel .lens, .scene--panel .tile, .scene--panel .baseline,
.scene--grid  .ch, .scene--grid  .lens, .scene--grid  .tile {
  transition: transform .8s cubic-bezier(.45, .05, .25, 1),
              rx .8s cubic-bezier(.45, .05, .25, 1),
              opacity .45s ease;
}
.scene--panel .tile, .scene--panel .baseline, .scene--grid .tile { opacity: 0; }

:is(.layer:hover, .layer:focus-visible) .scene--panel .ch--c { transform: translate(-55px, 10px) scale(.824); rx: 5px; }
:is(.layer:hover, .layer:focus-visible) .scene--panel .ch--m { transform: translate(55px, -10px) scale(.824); rx: 5px; }
:is(.layer:hover, .layer:focus-visible) .scene--panel .lens  { opacity: 0; }
:is(.layer:hover, .layer:focus-visible) .scene--panel .tile  { opacity: 1; transition-delay: .34s; }
:is(.layer:hover, .layer:focus-visible) .scene--panel .baseline { opacity: 1; transition-delay: .5s; }

:is(.layer:hover, .layer:focus-visible) .scene--grid .ch--c { transform: translate(-19px, -22px) scale(.794); rx: 5px; }
:is(.layer:hover, .layer:focus-visible) .scene--grid .ch--m { transform: translate(19px, -42px) scale(.794); rx: 5px; }
:is(.layer:hover, .layer:focus-visible) .scene--grid .lens  { opacity: 0; }
:is(.layer:hover, .layer:focus-visible) .scene--grid .tile  { opacity: 1; transition-delay: .34s; }
:is(.layer:hover, .layer:focus-visible) .scene--grid .tile--zoom { transition-delay: .46s; }

/* ---- BlotBench: the samples run down their lanes and settle ---- */
:is(.layer:hover, .layer:focus-visible) .scene--gel .band {
  animation: run 1.6s cubic-bezier(.35, .65, .3, 1) both; animation-delay: var(--d, 0s);
}
@keyframes run {
  from { transform: translateY(var(--from)) scaleY(.4); }
  to   { transform: translateY(0) scaleY(1); }
}
:is(.layer:hover, .layer:focus-visible) .scene--gel .dyefront { animation: creep 1.6s ease-out both; }
@keyframes creep { from { transform: translateY(-120px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }

/* ---- OmicsHub: the stack opens and the threads appear ---- */
.scene--net .plane { transition: transform .85s cubic-bezier(.32, .04, .2, 1); }
:is(.layer:hover, .layer:focus-visible) .scene--net .plane { transform: translateY(calc(var(--i) * 17px - 25px)); }
.scene--net .link { opacity: 0; transition: opacity .45s ease .35s; }
:is(.layer:hover, .layer:focus-visible) .scene--net .link { opacity: .85; animation: trace 2.2s linear infinite; }
@keyframes trace { to { stroke-dashoffset: -21; } }

/* ---- LabDesk: the page turns over ---- */
.scene--book .leaf {
  transform-origin: 160px 91px;
  transition: transform .6s cubic-bezier(.4, 0, .3, 1), opacity .4s ease;
}
:is(.layer:hover, .layer:focus-visible) .scene--book .leaf { animation: turn 1.5s cubic-bezier(.45, .05, .3, 1) forwards; }
@keyframes turn {
  0%   { transform: rotateY(0deg); opacity: 1; }
  62%  { opacity: 1; }
  100% { transform: rotateY(-152deg); opacity: 0; }
}

/* Reduced motion gets the resting state and nothing else: the panel scenes
   must not snap into their panel on hover, so the hover state is cancelled
   rather than merely un-animated. */
@media (prefers-reduced-motion: reduce) {
  .scene *, .layer * { animation: none !important; transition: none !important; }
  .layer:hover { transform: none; }
  :is(.layer:hover, .layer:focus-visible) :is(.scene--panel, .scene--grid) .ch--c,
  :is(.layer:hover, .layer:focus-visible) :is(.scene--panel, .scene--grid) .ch--m { transform: none; rx: 34px; }
  :is(.layer:hover, .layer:focus-visible) :is(.scene--panel, .scene--grid) .lens { opacity: 1; }
  :is(.layer:hover, .layer:focus-visible) :is(.scene--panel, .scene--grid) .tile,
  :is(.layer:hover, .layer:focus-visible) .scene--panel .baseline { opacity: 0; }
}

/* =========================================================================
   The stack is built as you scroll: one sheet drops onto the last, stretches
   a little on the way down and squashes when it lands. Without JavaScript
   every layer is simply there, which is also what reduced motion gets.
   ========================================================================= */

.js .layer { opacity: 0; transform: translateY(-64px); }
.js .layer.is-in {
  opacity: 1;
  transform: none;
  animation: drop .8s cubic-bezier(.3, .7, .35, 1) backwards;
}
@keyframes drop {
  0%   { opacity: 0; transform: translateY(-64px) scaleY(1.07); }
  48%  { opacity: 1; }
  66%  { transform: translateY(0) scaleY(.95); }
  84%  { transform: translateY(0) scaleY(1.025); }
  100% { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .js .layer { opacity: 1; transform: none; }
  .js .layer.is-in { animation: none; }
}


/* =========================================================================
   The gallery of app screens. The one you are reading is in front; the rest
   stand behind it, smaller and dimmer, each showing a strip past the edge of
   the one in front. Move onto a strip and that screen comes forward.

   Without JavaScript the screens and their captions are simply a list, one
   under the other, so everything below that stacks them sits behind .is-live.
   ========================================================================= */

.gal {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

/* ---- the chrome ---- */
.gal__chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
}
.gal__dots { display: flex; gap: 5px; flex: none; }
.gal__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--rule-strong); display: block; }

.gal__tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.gal__tabs::-webkit-scrollbar { display: none; }
.gal__tab {
  appearance: none; border: 0; background: none; cursor: pointer; white-space: nowrap;
  padding: 13px 14px 11px;
  font: inherit; font-size: .9rem; font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.gal__tab:hover { color: var(--ink); }
.gal__tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }

/* ---- the cards ---- */
.gal__stage { background: var(--paper-2); padding: 26px 0; }
.gal__card { position: relative; background: #030712; overflow: hidden; }
.gal__card img { width: 100%; height: 100%; display: block; object-fit: contain; }
.gal__pick { display: none; }

.is-live .gal__stage {
  position: relative;
  height: 0;
  /* the stage is as tall as the front card, which is --cw of its width */
  padding: 0 0 calc(var(--cw) * var(--arh) / var(--arw));
  --cw: 61%;
}
.is-live .gal__card {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--cw);
  aspect-ratio: var(--arw) / var(--arh);
  border-radius: 10px;
  box-shadow: 0 18px 40px -26px rgba(0, 0, 0, .75);
  transform: translateX(-50%) scale(.66);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: transform .42s cubic-bezier(.2, .7, .25, 1), opacity .42s ease;
}
.is-live .gal__card[data-d="0"]  { transform: translateX(-50%) scale(1); opacity: 1; z-index: 5; pointer-events: auto; }
.is-live .gal__card[data-d="1"]  { transform: translateX(calc(-50% + 30%)) scale(.86); opacity: .72; z-index: 4; pointer-events: auto; }
.is-live .gal__card[data-d="-1"] { transform: translateX(calc(-50% - 30%)) scale(.86); opacity: .72; z-index: 4; pointer-events: auto; }
.is-live .gal__card[data-d="2"]  { transform: translateX(calc(-50% + 50%)) scale(.74); opacity: .4; z-index: 3; pointer-events: auto; }
.is-live .gal__card[data-d="-2"] { transform: translateX(calc(-50% - 50%)) scale(.74); opacity: .4; z-index: 3; pointer-events: auto; }

/* the strip of a card that shows past the one in front is what you move onto:
   the button covers its whole card but only that strip is ever reachable,
   because the card in front is painted over the rest of it */
.is-live .gal__card:not([data-d="0"]) .gal__pick {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 3;
  appearance: none;
  border: 0;
  background: none;
  cursor: pointer;
}
.is-live .gal__card:not([data-d="0"]) .pin { opacity: 0; pointer-events: none; }

/* ---- the caption under the stack ---- */
.gal__says { padding: 24px 28px 28px; border-top: 1px solid var(--rule); }
.is-live .gal__says { min-height: 164px; }
.is-live .gal__say[hidden] { display: none; }
.gal__say + .gal__say { margin-top: 22px; }
.is-live .gal__say + .gal__say { margin-top: 0; }
.gal__where {
  display: block;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.gal__say h3 { font-size: 1.2rem; font-weight: 620; letter-spacing: -.028em; line-height: 1.3; color: var(--ink); margin: 0; }
.gal__say p { margin: 10px 0 0; color: var(--ink-2); font-size: .97rem; line-height: 1.62; max-width: 72ch; }

/* ---- the pins ---- */
.pin {
  position: absolute;
  transform: translate(-50%, -50%);
  appearance: none; border: 0; background: none; padding: 0;
  cursor: pointer;
  z-index: 2;
  transition: opacity .3s;
}
.pin__dot {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent, #fff);
  font-family: var(--font-mono);
  font-size: .7rem;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent);
}
.is-live .gal__card[data-d="0"] .pin__dot { animation: ping 2.8s ease-out infinite; animation-delay: calc(.8s + var(--k) * .5s); }
@keyframes ping {
  0%, 72%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  86% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--accent) 0%, transparent); }
}
.pin__label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: 220px;
  padding: 7px 11px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: .82rem;
  line-height: 1.35;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.pin:hover .pin__label,
.pin:focus-visible .pin__label,
.pin.is-open .pin__label { opacity: 1; transform: translateX(-50%) translateY(0); }

/* without the script the tabs control nothing, so they are not offered */
.gal:not(.is-live) .gal__tabs { display: none; }
.gal:not(.is-live) .gal__card + .gal__card { margin-top: 14px; }
.js .gal:not(.is-live) .gal__card:nth-child(n + 2),
.js .gal:not(.is-live) .gal__say:nth-child(n + 2) { display: none; }

@media (max-width: 860px) {
  .is-live .gal__stage { --cw: 76%; }
  .is-live .gal__card[data-d="1"]  { transform: translateX(calc(-50% + 24%)) scale(.88); }
  .is-live .gal__card[data-d="-1"] { transform: translateX(calc(-50% - 24%)) scale(.88); }
  .is-live .gal__card[data-d="2"],
  .is-live .gal__card[data-d="-2"] { opacity: 0; pointer-events: none; }
  .gal__says { padding: 20px 20px 22px; }
  .is-live .gal__says { min-height: 200px; }
  .pin__dot { width: 20px; height: 20px; font-size: .62rem; }
  .pin__label { max-width: 150px; font-size: .76rem; }
}

@media (prefers-reduced-motion: reduce) {
  .is-live .gal__card { transition: none; }
  .is-live .gal__card[data-d="0"] .pin__dot { animation: none; }
}

/* =========================================================================
   The three steps of the workflow, said in a line. It is the whole claim of
   the app -- look, measure, assemble, without leaving -- so it gets to be a
   shape rather than another sentence.
   ========================================================================= */

.flow {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.flow li {
  position: relative;
  font-size: 1rem;
  font-weight: 560;
  letter-spacing: -.015em;
  color: var(--ink);
  padding: 9px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 36%, var(--rule));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}
/* the connector lives in the gap between two pills, not inside one */
.flow li + li::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 50%;
  width: 11px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--accent);
  opacity: .65;
}
@media (max-width: 560px) {
  .flow { flex-direction: column; align-items: stretch; }
  .flow li { text-align: center; }
  .flow li + li::before { display: none; }
}
