/* iogentic design system, components. Version 2, 23 November 2026.
   Load after tokens.css. Colours come from the tokens only.
   Class names follow site/public/styles.css, so the page can take this file over.
   Rules marked "v2" are new and not on the page yet. */

/* Base */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html[data-motion="off"] { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* A theme set on an element inside the page brings its own text colour. */
[data-theme] { color: var(--text); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: var(--leading-tight); margin: 0; letter-spacing: var(--track-title); }
p { margin: 0; }
a { color: var(--link); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--accent) 34%, transparent); }

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

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.ground { background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: var(--text-body); line-height: var(--leading-body); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--surface); color: var(--text); padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
}
.skip:focus { top: 12px; }

/* Type */

.t-hero { font-family: var(--font-display); font-weight: 600; font-size: var(--text-hero); line-height: var(--leading-tight); letter-spacing: var(--track-hero); }
.t-display { font-family: var(--font-display); font-weight: 600; font-size: var(--text-display); line-height: var(--leading-tight); letter-spacing: var(--track-display); }
.t-h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-h3); line-height: var(--leading-tight); letter-spacing: var(--track-title); }
.t-card { font-family: var(--font-display); font-weight: 600; font-size: var(--text-card); line-height: var(--leading-tight); letter-spacing: var(--track-title); }
.lead { font-size: var(--text-lead); color: var(--text-muted); max-width: 34em; margin-top: 22px; }
.note { font-size: var(--text-note); color: var(--text-muted); }
.mono { font-family: var(--font-mono); font-size: var(--text-kicker); letter-spacing: 0.04em; }
.value { font-family: var(--font-mono); font-size: var(--text-note); overflow-wrap: anywhere; }
.code { font-family: var(--font-mono); font-size: 0.86em; padding: 2px 7px; border-radius: 6px; background: color-mix(in srgb, var(--surface-2) 80%, transparent); border: 1px solid var(--border); }

/* The gradient of the hero title. One element per view carries it. */
.grad { background: var(--grad-aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* v2: the kicker starts with one bit. */
.kicker {
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-family: var(--font-mono); font-size: var(--text-kicker); letter-spacing: var(--track-kicker); text-transform: uppercase;
  color: var(--accent);
}
.kicker::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px; background: currentColor; box-shadow: var(--glow-dot); }
.label { display: block; font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }

/* Background layers */

#aurora, #bits { position: fixed; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
#aurora { z-index: 0; }
#bits { z-index: 1; }
.site-header, main, .site-footer { position: relative; z-index: 2; }

/* Without WebGL, and wherever no script runs: blurred lights and two ribbons, drawn in CSS. */
html[data-aurora="css"] #aurora { display: none; }
html[data-aurora="css"] body::before,
.aurora::before {
  content: ""; position: absolute; inset: -20%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 30% at 70% 30%, color-mix(in srgb, var(--aurora-2) 45%, transparent), transparent 70%),
    radial-gradient(35% 28% at 45% 45%, color-mix(in srgb, var(--aurora-1) 50%, transparent), transparent 70%),
    radial-gradient(30% 26% at 85% 55%, color-mix(in srgb, var(--aurora-4) 40%, transparent), transparent 70%);
  filter: blur(40px);
  animation: drift 26s ease-in-out infinite alternate;
}
html[data-aurora="css"] body::before { position: fixed; }
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; background: var(--bg); }
.aurora .ribbon {
  position: absolute; left: -12%; width: 124%; height: 20%; border-radius: 50%;
  background: linear-gradient(90deg, transparent 2%, color-mix(in srgb, var(--ribbon-2) 62%, transparent) 30%, color-mix(in srgb, var(--ribbon-1) 46%, transparent) 58%, color-mix(in srgb, var(--ribbon-3) 62%, transparent) 84%, transparent 98%);
  filter: blur(16px); opacity: 0.62; transform: rotate(-7deg);
}
.aurora .ribbon:nth-child(1) { top: 30%; }
.aurora .ribbon:nth-child(2) { top: 66%; height: 15%; transform: rotate(8deg); opacity: 0.5; }
.aurora .ribbon:nth-child(3) { top: 4%; height: 12%; transform: rotate(4deg); opacity: 0.34; }

/* v2: ribbons drawn in SVG, for a ground without WebGL: a cover, a start screen, a slide.
   Each ribbon is a group of two paths that share one gradient, a wide soft body and a thin
   bright edge. The stops take the ribbon colours through data-c. */
.ribbons { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.ribbons path { fill: none; }
.ribbons .ribbon-body { stroke-width: 92; filter: blur(18px); }
.ribbons .ribbon-body[data-size="small"] { stroke-width: 70; }
.ribbons .ribbon-edge { stroke-width: 2.5; opacity: 0.85; }
.ribbons g { animation: ribbon-drift 16s ease-in-out infinite alternate; }
.ribbons g:nth-of-type(2) { animation-duration: 21s; animation-delay: -7s; }
.ribbons stop[data-c="1"] { stop-color: var(--ribbon-1); }
.ribbons stop[data-c="2"] { stop-color: var(--ribbon-2); }
.ribbons stop[data-c="3"] { stop-color: var(--ribbon-3); }
[data-theme="light"] .ribbons { opacity: 0.75; }
@keyframes ribbon-drift { from { transform: translateY(-10px); } to { transform: translateY(14px); } }

/* Header */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark { width: 40px; height: 30px; display: block; background: var(--mark) center / contain no-repeat; }
.brand-word { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: var(--track-title); }
.brand-word b { font-weight: 600; color: var(--accent); }
.brand-sub { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-muted); padding-left: 12px; border-left: 1px solid var(--border-strong); }

.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { position: relative; color: var(--text-muted); text-decoration: none; font-size: 0.95rem; padding: 6px 0; transition: color var(--dur-2); }
.nav a:hover { color: var(--text); }
/* v2: the current section carries one bit under its name. */
.nav a[aria-current]::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 6px; height: 6px; margin-left: -3px; border-radius: 1px; background: var(--accent); box-shadow: var(--glow-dot); color: var(--accent); }
.nav a[aria-current] { color: var(--text); }

.look-toggle {
  background: transparent; border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
  padding: 7px 14px; min-height: 40px; cursor: pointer; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 8px;
  transition: border-color var(--dur-2), box-shadow var(--dur-2);
}
.look-toggle::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.look-toggle:hover { border-color: var(--accent); box-shadow: var(--glow-accent-sm); }

/* v2: a site of several pages, with the navigation on the left. From 1080px the navigation is
   a fixed column of glass. Below that it is a bar on top, and a button opens it. nav.js moves
   the open state and marks the section in view. No inline style is needed. */
.layout { position: relative; z-index: 2; display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.layout-main { min-width: 0; }
.layout .hero { min-height: 100svh; }
.side-nav {
  position: sticky; top: 0; align-self: start; z-index: 20; height: 100vh; height: 100svh;
  display: flex; flex-direction: column;
  background: color-mix(in srgb, var(--bg-alt) 72%, transparent);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-right: 1px solid var(--border);
}
/* The upper part of the edge takes the light of the design. */
.side-nav::after { content: ""; position: absolute; top: 0; right: -1px; width: 1px; height: 36%; pointer-events: none; background: linear-gradient(180deg, var(--accent), transparent); opacity: calc(0.35 + 0.45 * var(--glow)); }
.side-nav-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 14px; }
.side-nav-toggle {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px; cursor: pointer;
  background: transparent; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); font-size: 0.9rem;
  transition: border-color var(--dur-2), box-shadow var(--dur-2);
}
.side-nav-toggle:hover { border-color: var(--accent); box-shadow: var(--glow-accent-sm); }
.side-nav-toggle::before { content: ""; width: 14px; height: 10px; background: linear-gradient(currentColor, currentColor) top / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) bottom / 100% 2px no-repeat; }
.side-nav-body { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 12px 16px; }
.side-group + .side-group { margin-top: 18px; }
.side-group-label { display: block; padding: 8px 10px 6px; font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.side-group > ul { list-style: none; margin: 0; padding: 0; }
.side-item {
  position: relative; display: flex; align-items: center; min-height: 44px; padding: 8px 10px 8px 28px;
  border-radius: var(--radius-sm); color: var(--text-muted); text-decoration: none; font-size: 0.97rem;
  transition: color var(--dur-2), background var(--dur-2);
}
.side-item::before { content: ""; position: absolute; left: 11px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 1px; background: var(--border-strong); transition: background var(--dur-2), box-shadow var(--dur-2); }
.side-item:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.side-item[aria-current="page"] { color: var(--text); background: var(--wash-accent); }
.side-item[aria-current="page"]::before { background: var(--accent); color: var(--accent); box-shadow: var(--glow-dot); }
/* The sections of the page that is open, on a rail of bits. */
.side-sub {
  list-style: none; margin: 2px 0 8px 13px; padding: 2px 0 2px 14px;
  background: repeating-linear-gradient(180deg, color-mix(in srgb, var(--bit) 55%, transparent) 0 var(--bit-size), transparent var(--bit-size) var(--bit-pitch)) left top / 2px 100% no-repeat;
}
.side-sub a { display: flex; align-items: center; min-height: 36px; padding: 4px 10px; border-radius: 6px; color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color var(--dur-2); }
.side-sub a:hover { color: var(--text); }
.side-sub a[aria-current] { color: var(--accent); }
.side-nav-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px 16px; border-top: 1px solid var(--border); }
/* The Look panel sits inside .layout, after the navigation, so it opens beside the Look button. */
.layout .look-panel { top: auto; bottom: 76px; left: 16px; right: auto; }
.layout-main > .site-footer { position: relative; }

@media (max-width: 1079px) {
  .layout { display: block; }
  .layout .hero { min-height: auto; }
  .side-nav { height: auto; border-right: 0; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 78%, transparent); }
  .side-nav::after { display: none; }
  .side-nav-head { min-height: 64px; padding: 10px var(--gutter); }
  .side-nav-toggle { display: inline-flex; }
  .side-nav-body, .side-nav-foot { display: none; }
  .side-nav[data-open] .side-nav-body { display: block; max-height: calc(100svh - 64px - 72px); padding: 4px var(--gutter) 16px; }
  .side-nav[data-open] .side-nav-foot { display: flex; padding-inline: var(--gutter); }
  .layout .look-panel { top: 74px; bottom: auto; left: auto; right: 16px; }
}

/* v2: the way to the page before and the page after, at the end of a page of a site with
   several pages. Each link names the page and says in one line what it holds. On hover the
   bits run in its direction. */
.section[data-size="small"] { padding: var(--space-8) 0; }
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-grid); }
.pager-link {
  position: relative; display: grid; gap: 4px; align-content: start; min-height: 44px; padding: 20px 24px 28px;
  border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text);
  background: var(--glass-2); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); box-shadow: var(--sheen);
  transition: border-color var(--dur-2), box-shadow var(--dur-2), transform var(--dur-2) var(--ease-out);
}
.pager-link:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: var(--sheen), var(--glow-accent-sm); }
.pager-link .label { margin: 0; }
.pager-link b { font-family: var(--font-display); font-weight: 600; font-size: var(--text-card); letter-spacing: var(--track-title); }
.pager-link b + span { color: var(--text-muted); font-size: var(--text-note); }
.pager-link::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 14px; height: var(--bit-size); background: var(--bits-line); opacity: 0.3; }
.pager-link:hover::after { opacity: 0.85; animation: march var(--dur-march) linear infinite; }
.pager-link[rel="prev"]:hover::after { animation-name: march-back; }
.pager-link[rel="next"] { text-align: right; }
.pager-link[rel="next"]:only-child { grid-column: 2; }

/* Buttons */

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  padding: 12px 20px; min-height: 44px; border-radius: var(--radius-pill); border: 1px solid transparent; text-decoration: none;
  font-weight: 600; font-size: 1rem; line-height: 1.2; white-space: nowrap;
  transition: box-shadow var(--dur-2), border-color var(--dur-2), background var(--dur-2), transform var(--dur-1) var(--ease-out);
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26); }
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), var(--glow-primary); }
.btn-ghost { background: var(--glass-1); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); box-shadow: var(--glow-accent-sm); }
/* v2: the one featured action of a view. A glass button with the ribbon as its edge. */
.btn-aurora { background: var(--glass-2); color: var(--text); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.btn-aurora::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: var(--grad-aurora);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.btn-aurora:hover { box-shadow: var(--glow-aurora); }
.btn-quiet { background: transparent; color: var(--text-muted); padding-inline: 10px; }
.btn-quiet:hover { color: var(--text); }
.btn-small { padding: 8px 16px; min-height: 36px; font-size: var(--text-note); }
.btn-large { padding: 15px 28px; min-height: 52px; font-size: 1.06rem; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.4; cursor: default; box-shadow: none; transform: none; }
.btn .arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur-2) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: var(--glass-1); border: 1px solid var(--border-strong); color: var(--text);
  transition: border-color var(--dur-2), box-shadow var(--dur-2);
}
.icon-btn:hover { border-color: var(--accent); box-shadow: var(--glow-accent-sm); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-actions); margin-top: 30px; }

/* Icons: a 24px box, a 2px stroke in accent, one solid part in primary. */
.icon { width: 24px; height: 24px; display: block; flex: none; }
.icon *, .glyph * { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon .solid, .glyph .solid { fill: var(--primary); stroke: none; }
.icon[data-tone="text"] * { stroke: currentColor; }
.icon[data-tone="text"] .solid { fill: currentColor; stroke: none; }
.glyph { width: 40px; height: 40px; display: block; }

/* Tags, chips, notice */

.tag {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: var(--track-label); text-transform: uppercase;
  padding: 3px 9px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); color: var(--text-muted); white-space: nowrap;
}
.tag[data-state="open"] { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 50%, transparent); }
.tag[data-state="dev"] { color: var(--link); border-color: color-mix(in srgb, var(--link) 50%, transparent); }
.tag[data-state="idea"] { color: var(--wait); border-color: color-mix(in srgb, var(--wait) 50%, transparent); }
/* v2: a tag may carry a dot for a state that is live. */
.tag[data-dot]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: var(--glow-dot); }
.chip { align-self: flex-start; font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: var(--track-label); text-transform: uppercase; padding: 4px 10px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); color: var(--text-muted); }
.chip[data-state="now"] { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 50%, transparent); }

.notice {
  margin-top: 30px; display: flex; gap: 12px; align-items: flex-start; max-width: 34em;
  padding: 12px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--glass-2); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  font-size: var(--text-note); color: var(--text-muted);
}
.notice strong { color: var(--text); font-weight: 600; }
.notice::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--wait); color: var(--wait); box-shadow: var(--glow-dot); }
.notice[data-state="ok"]::before { background: var(--ok); color: var(--ok); }
.notice[data-state="info"]::before { background: var(--accent); color: var(--accent); }

.principles { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.principles li { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); font-size: 0.95rem; background: var(--glass-2); }
.principles li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); color: var(--accent); box-shadow: var(--glow-dot); }

/* v2: a short message that leaves by itself. Solid, because it lies over content. */
.toast { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-panel); font-size: var(--text-note); }
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--ok); color: var(--ok); box-shadow: var(--glow-dot); }

/* Sections */

.section { padding: var(--space-section) 0; background: color-mix(in srgb, var(--bg) var(--veil), transparent); border-top: 1px solid var(--border); }
.section-head { max-width: 46em; margin-bottom: var(--space-head); }
.section h2 { font-size: var(--text-display); letter-spacing: var(--track-display); }
.subhead { margin: 64px 0 26px; max-width: 46em; }
.subhead h3 { font-size: 1.6rem; }
.subhead p { color: var(--text-muted); margin-top: 10px; }

.band { padding: var(--space-band) 0; border-top: 1px solid var(--border); background: var(--grad-band), color-mix(in srgb, var(--bg) var(--veil), transparent); }
.band-line { font-family: var(--font-display); font-weight: 600; font-size: var(--text-band); line-height: 1.14; letter-spacing: var(--track-display); max-width: 19em; margin-top: 14px; color: var(--text); }
.band-text { color: var(--text-muted); font-size: 1.12rem; max-width: 42em; margin-top: 18px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-grid); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-grid); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-grid); }

/* Cards */

.card {
  position: relative; overflow: hidden;
  background: var(--glass-3);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--sheen);
  transition: border-color var(--dur-2), box-shadow var(--dur-2), transform var(--dur-2) var(--ease-out);
}
/* A light that follows the pointer. A script sets --mx and --my in pixels. */
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.25s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
}
.card:hover::before { opacity: var(--glow); }
.card > * { position: relative; }
/* v2: the ribbon as a hairline. For the one card of a group that leads. */
.card[data-edge] { border-color: transparent; box-shadow: var(--sheen), var(--glow-accent-sm); }
.card[data-edge]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: var(--grad-edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* v2: corner marks. For a card that holds a measurement or a record. */
.card[data-ticks]::after {
  --t: color-mix(in srgb, var(--accent) 78%, transparent);
  content: ""; position: absolute; inset: 7px; pointer-events: none;
  background:
    linear-gradient(var(--t), var(--t)) left top / 12px 1px no-repeat, linear-gradient(var(--t), var(--t)) left top / 1px 12px no-repeat,
    linear-gradient(var(--t), var(--t)) right top / 12px 1px no-repeat, linear-gradient(var(--t), var(--t)) right top / 1px 12px no-repeat,
    linear-gradient(var(--t), var(--t)) left bottom / 12px 1px no-repeat, linear-gradient(var(--t), var(--t)) left bottom / 1px 12px no-repeat,
    linear-gradient(var(--t), var(--t)) right bottom / 12px 1px no-repeat, linear-gradient(var(--t), var(--t)) right bottom / 1px 12px no-repeat;
}
/* v2: a wash of the design colours under the glass. */
.card[data-wash] { background: var(--grad-wash), var(--glass-3); }
/* v2: a card that is a link or a button lifts by 2px. */
.card[data-lift]:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: var(--sheen), var(--shadow-1), var(--glow-accent-sm); }
.card[data-solid] { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }

.fn h3 { font-size: var(--text-card); margin: 14px 0 8px; }
.fn p { color: var(--text-muted); font-size: 0.98rem; }
.offer .no, .field .no { font-family: var(--font-mono); font-size: var(--text-kicker); letter-spacing: var(--track-kicker); color: var(--accent); }
.offer h3, .field h3 { font-size: 1.35rem; margin: 10px 0; }
.offer p, .field p { color: var(--text-muted); }
.field { display: flex; flex-direction: column; }
.field .chip { margin-top: auto; }
.points, .field ul { list-style: none; margin: 14px 0 18px; padding: 0; display: grid; gap: 8px; font-size: 0.95rem; }
.points { margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--border); }
.points li, .field ul li { position: relative; padding-left: 18px; }
.points li::before, .field ul li::before { content: ""; position: absolute; left: 0; top: 0.58em; width: 7px; height: 7px; border-radius: 2px; background: var(--primary); }

/* v2: a number that was counted, with its label. */
.stat { display: grid; gap: 6px; }
.stat-value { font-family: var(--font-display); font-weight: 600; font-size: var(--text-stat); line-height: 1; letter-spacing: var(--track-hero); background: var(--grad-aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-muted); }

/* Bits */

.bits-rule { display: block; height: var(--bit-size); background: var(--bits-line); opacity: 0.8; animation: march var(--dur-march) linear infinite; }
.bits-rule[data-dir="back"] { background: var(--bits-line-back); animation-name: march-back; }
.bits-rule[data-still] { animation: none; opacity: 0.55; }
.bits-loader { display: inline-grid; grid-auto-flow: column; gap: 6px; align-items: center; }
.bits-loader i { width: 6px; height: 6px; border-radius: 1px; background: var(--accent); opacity: 0.25; animation: blink 1.2s steps(1) infinite; }
.bits-loader i:nth-child(2) { animation-delay: 0.3s; }
.bits-loader i:nth-child(3) { animation-delay: 0.6s; }
/* A meter of squares. Mark the filled ones with data-on. */
.bits-meter { display: inline-grid; grid-auto-flow: column; gap: 4px; }
.bits-meter i { width: 10px; height: 10px; border-radius: 2px; background: color-mix(in srgb, var(--text) 12%, transparent); }
.bits-meter i[data-on] { background: var(--accent); color: var(--accent); box-shadow: var(--glow-dot); }
.return { margin-top: 14px; display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-muted); }
.return-line { flex: 1; height: var(--bit-size); background: var(--bits-line-back); opacity: 0.8; animation: march-back var(--dur-march) linear infinite; }

/* Forms (v2: the page has the controls of the Look panel only) */

.form-field { display: grid; gap: 6px; }
.form-field .label { margin: 0; }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; font: inherit; color: var(--text);
  background: color-mix(in srgb, var(--bg-alt) 72%, transparent); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  transition: border-color var(--dur-2), box-shadow var(--dur-2);
}
.textarea { min-height: 112px; resize: vertical; }
.select { appearance: none; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.input::placeholder, .textarea::placeholder { color: var(--text-muted); opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); box-shadow: var(--glow-accent-sm); border-radius: var(--radius-sm); }
.input[aria-invalid="true"] { border-color: var(--wait); }
.hint { font-size: 0.85rem; color: var(--text-muted); }
.hint[data-state="wait"] { color: var(--wait); }

.check { display: flex; align-items: center; gap: 10px; font-size: var(--text-note); cursor: pointer; }
.check input:not(.switch) { accent-color: var(--accent); width: 18px; height: 18px; }
.switch { appearance: none; position: relative; flex: none; width: 46px; height: 26px; margin: 0; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); background: var(--surface-2); cursor: pointer; transition: background var(--dur-2), border-color var(--dur-2); }
.switch::before { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--text-muted); transition: transform var(--dur-2) var(--ease-out), background var(--dur-2); }
.switch:checked { background: var(--wash-accent); border-color: var(--accent); }
.switch:checked::before { transform: translateX(20px); background: var(--accent); color: var(--accent); box-shadow: var(--glow-dot); }
input[type="range"] { width: 100%; accent-color: var(--accent); }

.seg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.seg[data-cols="1"] { grid-template-columns: 1fr; }
.seg[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 7px 4px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); cursor: pointer; font-size: 0.9rem; transition: border-color var(--dur-2), background var(--dur-2); }
.seg span:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.seg input:checked + span { border-color: var(--accent); background: var(--wash-accent); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Tabs, pills, stepper */

.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill, .shot-tab {
  font: inherit; font-weight: 600; font-size: 0.95rem; color: var(--text); cursor: pointer;
  padding: 9px 18px; min-height: 40px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); background: var(--glass-3);
  transition: border-color var(--dur-2), background var(--dur-2);
}
.pill:hover, .shot-tab:hover { border-color: var(--accent); }
.pill[aria-pressed="true"], .shot-tab[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
/* v2: tabs with the ribbon under the selected one. */
.tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--border); }
.tab { position: relative; background: none; border: 0; padding: 12px 0; cursor: pointer; font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; color: var(--text-muted); transition: color var(--dur-2); }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--grad-aurora); box-shadow: var(--glow-accent-sm); }
.stepper { margin-top: 18px; display: flex; align-items: center; gap: 14px; }
.stepper .count { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); min-width: 5.5em; text-align: center; }

/* Platform path */

.path { display: grid; grid-template-columns: 1fr 3fr 1fr; gap: 14px; }
.lane { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; background: var(--glass-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--sheen); }
.lane-role { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); display: block; }
.lane-name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; display: block; margin: 2px 0 14px; }
.lane[data-product="iogentic"] { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: var(--sheen), 0 0 calc(30px * var(--glow)) color-mix(in srgb, var(--accent) 14%, transparent); }
.stages { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 26px; }
.stage {
  position: relative; cursor: pointer; text-align: left;
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 12px 14px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  transition: border-color var(--dur-2), box-shadow var(--dur-2), background var(--dur-2);
}
.stage small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 0.7rem; letter-spacing: var(--track-label); color: var(--text-muted); margin-bottom: 2px; }
.stage:hover { border-color: var(--accent); }
.stage[aria-current="step"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface-2)); box-shadow: 0 0 calc(22px * var(--glow)) color-mix(in srgb, var(--accent) 35%, transparent); }
.stage::after { content: ""; position: absolute; top: 50%; left: 100%; width: 26px; height: var(--bit-size); margin-top: -2px; pointer-events: none; background: var(--bits-line); opacity: 0.8; animation: march var(--dur-march) linear infinite; }
.lane:last-child .stage:last-child::after { display: none; }
.lane:not(:last-child) .stage:last-child::after { width: 46px; }

.stage-detail { margin-top: 22px; }
.stage-panel { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.stage-detail h3 { font-size: var(--text-h3); margin: 10px 0; }
.stage-detail p { color: var(--text-muted); }
.facts { margin: 0; display: grid; gap: 12px; }
.facts div { border-left: 2px solid var(--border-strong); padding-left: 14px; }
.facts dt { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-muted); }
.facts dd { margin: 2px 0 0; }

/* Run */

.run { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: var(--space-grid); align-items: stretch; }
.run-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.run-steps li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); color: var(--text-muted); font-family: var(--font-display); font-weight: 500; }
.run-steps li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--border-strong); flex: none; }
.run-steps li[data-state="active"] { color: var(--text); border-color: var(--accent); }
.run-steps li[data-state="active"]::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 calc(12px * var(--glow)) var(--accent); }
.run-steps li[data-state="waiting"] { color: var(--text); border-color: var(--wait); }
.run-steps li[data-state="waiting"]::before { background: var(--wait); border-color: var(--wait); box-shadow: 0 0 calc(12px * var(--glow)) var(--wait); }
.run-steps li[data-state="done"] { color: var(--text); }
.run-steps li[data-state="done"]::before { background: var(--ok); border-color: var(--ok); }
.run-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.run-state { margin-top: 14px; font-family: var(--font-mono); font-size: var(--text-log); color: var(--text-muted); }

.console {
  margin: 0; padding: 18px; min-height: 240px; max-height: 460px; overflow: auto;
  font-family: var(--font-mono); font-size: var(--text-log); line-height: var(--leading-log);
  background: color-mix(in srgb, var(--bg-alt) 86%, transparent); border: 1px solid var(--border); border-radius: var(--radius);
  list-style: none;
}
.console li { display: grid; grid-template-columns: 5.6em 7.2em 1fr; gap: 10px; }
.console .m, .console .empty { white-space: pre-wrap; }
.console .t { color: var(--text-muted); }
.console .k { color: var(--accent); }
.console li[data-kind="checkpoint"] .k, .console li[data-kind="signature"] .k { color: var(--wait); }
.console li[data-kind="record"] .k { color: var(--ok); }
.console .empty { display: block; color: var(--text-muted); }
/* v2: a head for the log, with its name on the left and its state on the right. */
.console-window { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: color-mix(in srgb, var(--bg-alt) 86%, transparent); box-shadow: var(--sheen); }
.console-head { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-muted); }
.console-head .tag { margin-left: auto; }
.console-window .console { border: 0; border-radius: 0; background: none; }

.record h3 { font-size: 1.2rem; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.record dl { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 20px; }
.record dt { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-muted); }
.record dd { margin: 2px 0 0; font-family: var(--font-mono); font-size: var(--text-note); overflow-wrap: anywhere; }

/* Table */

.table, .status { width: 100%; border-collapse: collapse; }
.table th, .table td, .status th, .status td { text-align: left; padding: 16px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table thead th, .status thead th { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-muted); font-weight: 400; }
.table tbody th, .status tbody th { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.table td, .status td { color: var(--text-muted); }

/* Architecture nodes and trace */

.arch-node {
  width: 100%; text-align: left; font: inherit; color: var(--text); cursor: pointer;
  display: grid; grid-template-columns: 2.4em 1fr; gap: 2px 12px; align-items: center; padding: 14px 16px;
  border-radius: var(--radius); border: 1px solid var(--border-strong); background: color-mix(in srgb, var(--surface) 84%, transparent);
  transition: border-color var(--dur-2), box-shadow var(--dur-2);
}
.arch-node small { grid-row: 1 / 3; font-family: var(--font-mono); font-size: var(--text-kicker); color: var(--text-muted); }
.arch-node b { font-family: var(--font-display); font-size: 1.1rem; }
.arch-node > span { grid-column: 2; color: var(--text-muted); font-size: var(--text-note); }
.arch-node:hover { border-color: var(--accent); }
.arch-node[data-state="done"] { border-color: color-mix(in srgb, var(--ok) 55%, transparent); }
.arch-node[data-state="done"] small { color: var(--ok); }
.arch-node[data-state="now"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--glow-accent); }
.arch-node[data-state="now"] small { color: var(--accent); }
.guards { border: 1px dashed var(--border-strong); border-radius: calc(var(--radius) + 6px); padding: 12px; display: grid; gap: 12px; }
.guards-label { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-muted); padding: 2px 4px 0; }
.trace { list-style: none; margin: 14px 0 0; padding: 0; font-family: var(--font-mono); font-size: 0.86rem; display: grid; gap: 6px; }
.trace li { display: grid; grid-template-columns: 2.2em 1fr; gap: 10px; color: var(--text-muted); }
.trace li b { color: var(--accent); font-weight: 400; }

/* Timeline, phases, bars */

.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: step; }
.timeline[data-cols="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.timeline li { position: relative; padding: 36px 20px 0 0; counter-increment: step; }
.timeline li::before { content: "0" counter(step); position: absolute; top: 0; left: 0; font-family: var(--font-mono); font-size: var(--text-kicker); letter-spacing: var(--track-kicker); color: var(--accent); }
.timeline li::after { content: ""; position: absolute; top: 9px; left: 2.8em; right: 12px; height: 2px; background: var(--bits-line); opacity: 0.55; }
.timeline li:last-child::after { display: none; }
.timeline h3 { font-size: 1.2rem; margin-bottom: 8px; }
.timeline p { color: var(--text-muted); font-size: 0.97rem; }

.phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.phases li { padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: 0.9rem; color: var(--text-muted); }
.phases li b { display: block; font-family: var(--font-mono); font-weight: 400; font-size: var(--text-label); letter-spacing: var(--track-label); margin-bottom: 4px; }
.phases li[data-state="done"] { border-color: color-mix(in srgb, var(--ok) 50%, transparent); color: var(--text); }
.phases li[data-state="done"] b { color: var(--ok); }
.phases li[aria-current="step"] { border-color: var(--accent); color: var(--text); box-shadow: 0 0 calc(18px * var(--glow)) color-mix(in srgb, var(--accent) 30%, transparent); }
.phases li[aria-current="step"] b { color: var(--accent); }

.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.bars li { display: grid; grid-template-columns: 7em 1fr 1.4em; gap: 12px; align-items: center; font-size: 0.93rem; }
.bar-track { height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--text) 10%, transparent); overflow: hidden; }
.bar { display: block; height: 100%; border-radius: 4px; background: var(--grad-bar); }
.bar[data-w="3"] { width: 100%; }
.bar[data-w="2"] { width: 66.7%; }
.bar[data-w="1"] { width: 33.3%; }
.bar-value { font-family: var(--font-mono); color: var(--text-muted); text-align: right; }

.options { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.options li { padding: 7px 14px; border-radius: var(--radius-pill); border: 1px solid var(--border); font-size: 0.9rem; color: var(--text-muted); }
.options li[data-picked] { border-color: var(--accent); color: var(--text); background: color-mix(in srgb, var(--accent) 12%, transparent); }

/* Sheet: a solid document on the page */

.sheet { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sheet); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sheet-head b { font-family: var(--font-display); font-size: 1.15rem; }
.sheet-case { font-family: var(--font-mono); font-size: var(--text-log); color: var(--text-muted); margin-top: 6px; }
.sheet dl { margin: 16px 0 0; }
.sheet dl > div { display: grid; grid-template-columns: 8.5em 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border); }
.sheet dt { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-muted); padding-top: 4px; }
.sheet dd { margin: 0; }
.sheet .mark { color: var(--wait); }
.sheet .good { color: var(--ok); }
.sheet-actions { display: flex; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }

/* Questions */

.faq { max-width: 54em; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; transition: color var(--dur-2); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-weight: 400; font-size: 1.3rem; color: var(--accent); transition: transform var(--dur-2) ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { color: var(--text-muted); padding: 0 0 20px; max-width: 46em; }

/* Hero */

.hero { position: relative; min-height: calc(100svh - 64px); display: flex; align-items: center; padding: 56px 0 72px; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 84%, transparent) 0%, color-mix(in srgb, var(--bg) 48%, transparent) 46%, transparent 78%); }
.hero .container { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.hero h1 { font-size: var(--text-hero); letter-spacing: var(--track-hero); }
.hero h1 span { background: var(--grad-aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: var(--text); opacity: 0.9; }

/* The mark of the current design, with a stream of bits in and out. */
.io-figure { position: relative; width: 100%; max-width: 460px; margin-inline: auto; aspect-ratio: 320 / 226; }
.io-streams { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.io-streams .stream { fill: none; stroke: var(--bit); stroke-width: 5; stroke-dasharray: 5 13; opacity: 0.85; }
.io-streams text { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em; fill: var(--text-muted); text-transform: uppercase; }
.hero-logo { position: absolute; inset: 4% 18% 4% 20%; background: var(--mark) center / contain no-repeat; filter: drop-shadow(0 0 calc(22px * var(--glow)) color-mix(in srgb, var(--primary) 60%, transparent)); }
[data-theme="light"] .hero-logo, [data-theme="light"] .brand-mark { filter: drop-shadow(0 2px 6px rgba(10, 16, 40, 0.28)); }
.io-mark { display: block; aspect-ratio: 522.5 / 429; background: var(--mark) center / contain no-repeat; }

/* v2: the figure of the hero as a funnel. On the left loose bits of many sizes fall toward
   the mark, each at its own pace. The mark takes them in. On the right they leave in three
   lanes that keep step. The markup is one SVG beside the mark, see index.html. */
.io-flow { position: relative; width: 100%; max-width: 640px; margin-inline: auto; aspect-ratio: 480 / 226; }
.io-flow::before {
  content: ""; position: absolute; inset: 6% 22%; border-radius: 50%; pointer-events: none; opacity: var(--glow);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 30%, transparent), color-mix(in srgb, var(--accent-2) 12%, transparent) 60%, transparent);
  filter: blur(26px);
}
.io-flow svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.io-flow .hero-logo { inset: 17.26% 31.25%; }
.io-flow text { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; fill: var(--text-muted); text-transform: uppercase; }
.io-flow .guide { fill: none; stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 2 5; }
.io-flow .fade-a { stop-color: var(--bit); stop-opacity: 0; }
.io-flow .fade-b { stop-color: var(--bit); stop-opacity: 0.95; }
.io-flow .fade-c { stop-color: var(--accent); stop-opacity: 1; }
.io-flow .fade-d { stop-color: var(--accent); stop-opacity: 0; }
.io-flow .in path { fill: none; stroke-width: 4; stroke-dasharray: 2 9 5 14; animation: flow-in 2.6s linear infinite; }
.io-flow .in path:nth-child(2) { stroke-width: 3; stroke-dasharray: 6 11 3 10; animation-duration: 1.9s; }
.io-flow .in path:nth-child(3) { stroke-width: 5; stroke-dasharray: 4 11; animation-duration: 1.5s; }
.io-flow .in path:nth-child(4) { stroke-width: 3; stroke-dasharray: 5 8 3 14; animation-duration: 2.2s; }
.io-flow .in path:nth-child(5) { stroke-dasharray: 2 10 6 12; animation-duration: 3s; }
.io-flow .out path { fill: none; stroke-width: 6; stroke-dasharray: 6 12; animation: flow 1.3s linear infinite; filter: drop-shadow(0 0 calc(5px * var(--glow)) var(--accent)); }
.io-flow .motes > * { fill: var(--bit); opacity: 0; offset-rotate: 0deg; animation: mote 3.6s linear infinite; filter: drop-shadow(0 0 calc(4px * var(--glow)) var(--bit)); }
.io-flow .motes > :nth-child(1) { offset-path: path("M0 30 C 70 30 100 104 158 106"); animation-delay: -0.3s; }
.io-flow .motes > :nth-child(2) { offset-path: path("M0 70 C 60 70 110 108 158 108"); animation-delay: -1.7s; animation-duration: 2.9s; }
.io-flow .motes > :nth-child(3) { offset-path: path("M0 150 C 60 150 110 112 158 112"); animation-delay: -2.4s; animation-duration: 3.1s; fill: var(--accent-2); }
.io-flow .motes > :nth-child(4) { offset-path: path("M0 190 C 70 190 100 116 158 114"); animation-delay: -0.9s; animation-duration: 4.2s; }
.io-flow .motes > :nth-child(5) { offset-path: path("M10 6 C 80 20 110 96 158 104"); animation-delay: -2.9s; animation-duration: 4.6s; fill: var(--accent); }
.io-flow .motes > :nth-child(6) { offset-path: path("M6 216 C 80 204 112 124 158 116"); animation-delay: -1.2s; animation-duration: 3.9s; }
.io-flow .motes > :nth-child(7) { offset-path: path("M0 110 H158"); animation-delay: -0.6s; animation-duration: 2.4s; }
.io-flow .motes > :nth-child(8) { offset-path: path("M0 52 C 64 52 104 106 158 107"); animation-delay: -3.3s; animation-duration: 3.4s; fill: var(--accent-2); }
@keyframes flow-in { to { stroke-dashoffset: -30; } }
@keyframes mote {
  0% { offset-distance: 0%; opacity: 0; }
  14% { opacity: 0.95; }
  82% { opacity: 0.95; }
  100% { offset-distance: 100%; opacity: 0; }
}

.mail { display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 3.4vw, 2.3rem); color: var(--text); text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 4px; overflow-wrap: anywhere; }
.mail:hover { color: var(--accent); }

/* Footer and Pipesmith */

.site-footer { border-top: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 80%, transparent); padding: 28px 0; font-size: 0.9rem; color: var(--text-muted); }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.built { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; }
.partner { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); text-decoration: none; }
.partner:hover { color: var(--text); text-decoration: underline; }
/* Pipesmith, wherever a page names it: its symbol and a link. */
.pipesmith { color: inherit; white-space: nowrap; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.pipesmith:hover { color: var(--accent); }
.ps-mark { display: inline-block; width: 1.35em; height: 1.35em; margin-right: 0.3em; vertical-align: -0.3em; background: var(--pipesmith-mark) center / contain no-repeat; }
.partner.pipesmith { color: var(--text-muted); text-decoration: none; }
.partner.pipesmith:hover { color: var(--text); text-decoration: underline; }
.partner .ps-mark { width: 24px; height: 24px; margin: 0; }

/* Look panel and first visit */

.look-panel {
  position: fixed; z-index: 30; top: 74px; right: max(16px, calc((100vw - var(--container)) / 2));
  width: 300px; max-width: calc(100vw - 32px); max-height: calc(100svh - 96px); overflow: auto;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow-panel);
}
.look-panel h2 { font-size: 1.05rem; margin-bottom: 10px; }
.look-panel fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.look-panel legend, .look-panel .row > span { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-muted); padding: 0; margin-bottom: 6px; }
.look-panel .row { display: grid; grid-template-columns: 1fr; margin-bottom: 12px; }
.look-panel .check, .first-visit .check { margin-bottom: 14px; }
.look-panel .btns, .first-visit .btns { display: flex; gap: 8px; }
.look-panel .btns .btn, .first-visit .btn { flex: 1; }
.look-note { margin-top: 10px; font-size: 0.8rem; color: var(--text-muted); }
.first-visit {
  position: fixed; z-index: 40; left: 50%; bottom: 24px; transform: translateX(-50%);
  width: min(420px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--accent); border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow-panel), 0 0 calc(30px * var(--glow)) color-mix(in srgb, var(--accent) 25%, transparent);
}
.first-visit h2 { font-size: 1.1rem; margin-bottom: 6px; }
.first-visit p { color: var(--text-muted); font-size: var(--text-note); margin-bottom: 14px; }

/* Motion */

.flow { animation: flow 1.6s linear infinite; }
.float { animation: float 9s ease-in-out infinite alternate; }

@keyframes flow { to { stroke-dashoffset: -18; } }
@keyframes float { from { transform: translateY(-6px); } to { transform: translateY(8px); } }
@keyframes march { to { background-position: 10px 0; } }
@keyframes march-back { to { background-position: -10px 0; } }
@keyframes march-down { to { background-position: 0 10px; } }
@keyframes drift { from { transform: translate3d(-3%, -2%, 0) scale(1); } to { transform: translate3d(4%, 3%, 0) scale(1.08); } }
@keyframes blink { 0%, 100% { opacity: 0.25; } 33% { opacity: 1; } }

/* At rest every animation holds the state it has. A new animation needs a line here. */
html[data-motion="off"] .flow,
html[data-motion="off"] .float,
html[data-motion="off"] .stage::after,
html[data-motion="off"] .return-line,
html[data-motion="off"] .bits-rule,
html[data-motion="off"] .bits-loader i,
html[data-motion="off"] .aurora::before,
html[data-motion="off"] .ribbons g,
html[data-motion="off"] .pager-link::after,
html[data-motion="off"] .io-flow .in path,
html[data-motion="off"] .io-flow .out path,
html[data-motion="off"] .io-flow .motes > *,
html[data-motion="off"][data-aurora="css"] body::before { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flow, .float, .stage::after, .return-line, .bits-rule, .bits-loader i, .aurora::before, .ribbons g, .pager-link::after, .io-flow .in path, .io-flow .out path, .io-flow .motes > * { animation: none; }
  html[data-aurora="css"] body::before { animation: none; }
  .btn, .card { transition: none; }
}

/* Narrow screens */

@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { gap: 16px; }
}
@media (min-width: 901px) and (max-width: 1080px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .look-toggle { margin-left: auto; }
  .brand-sub { display: none; }
  .hero { min-height: auto; padding: 48px 0 64px; }
  .hero::before { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 70%, transparent), color-mix(in srgb, var(--bg) 40%, transparent)); }
  .hero .container { grid-template-columns: 1fr; gap: 32px; }
  .io-figure { max-width: 280px; order: -1; }
  .io-flow { max-width: 420px; order: -1; }
  .section { padding: 72px 0; }
  .band { padding: 56px 0; }
  .subhead { margin-top: 48px; }
  .grid-2, .grid-3, .grid-4, .run, .stage-panel, .timeline, .timeline[data-cols="4"] { grid-template-columns: 1fr; }
  .path { grid-template-columns: 1fr; }
  .stages { grid-auto-flow: row; gap: 22px; }
  .stage::after,
  .lane:not(:last-child) .stage:last-child::after {
    top: 100%; left: 24px; width: var(--bit-size); height: 22px; margin-top: 0;
    background: repeating-linear-gradient(180deg, var(--bit) 0 var(--bit-size), transparent var(--bit-size) var(--bit-pitch));
    animation-name: march-down;
  }
  .lane:not(:last-child) .stage:last-child::after { height: 48px; }
  .timeline li { padding: 30px 0 22px; }
  .timeline li::after { display: none; }
  .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .console li { grid-template-columns: 5.6em 1fr; }
  .console li .m { grid-column: 1 / -1; }
  .record dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet dl > div { grid-template-columns: 1fr; gap: 4px; }
  .tabs { gap: 18px; overflow-x: auto; }
  .pager { grid-template-columns: 1fr; }
  .pager-link[rel="next"] { text-align: left; }
  .pager-link[rel="next"]:only-child { grid-column: auto; }
  .table thead, .status thead { display: none; }
  .table tr, .status tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .table th, .table td, .status th, .status td { display: block; padding: 2px 0; border: 0; }
}
