/* Your own business intelligence cluster, at home: openbi.no/cluster/. The system of the Mac and performance pages
   (mac.css, performance.css): dark product chapters that stay dark whatever the theme, light text chapters that follow
   the reader's system theme (and the site's data-theme on <html>), big numbers with bars, tables, footnotes.
   Added: the flight (one frame sequence over two scroll scenes, its beats as captions over the picture), the
   architecture figure, the step-by-step guide with its code blocks, the lessons and what isn't done yet.
   Every scene works without script and with reduced motion: it is then a column of still pictures and captions. */

/* Inter from the site itself (/assets/fonts/, as the home page has it): the site's Content-Security-Policy allows fonts
   from openbi.no only */
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --blue: #2F6FDE;
  --blue-bright: #4C8DFF;
  --grad: linear-gradient(90deg, #5B9BFF 0%, #9A7DFF 48%, #E58BD6 100%);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1260px;
  --nav-h: 52px;
  --ease: cubic-bezier(.25, .1, .25, 1);
  /* the two nodes, as the 3D streams have them */
  --n1: #5B9BFF;
  --n2: #9A7DFF;
  /* the dark chapters: fixed, whatever the theme */
  --d-bg: #000;
  --d-fg: #f5f5f7;
  --d-muted: #86868b;
  --d-soft: #a1a1a6;
  --d-line: #2a2a2d;
  --d-card: #161617;
  --d-link: #2997ff;
  /* the text chapters: light by default */
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --card: #ffffff;
  --link: #0066cc;
  --code-bg: #1d1d1f;
  --code-fg: #f5f5f7;
  --code-cap: #a1a1a6;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000; --bg-alt: #0d0d0e; --fg: #f5f5f7; --muted: #86868b; --line: #2f2f32; --card: #161617; --link: #2997ff;
    --code-bg: #222225;
  }
}
:root[data-theme="dark"] {
  --bg: #000; --bg-alt: #0d0d0e; --fg: #f5f5f7; --muted: #86868b; --line: #2f2f32; --card: #161617; --link: #2997ff;
  --code-bg: #222225;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 8px); }
body {
  margin: 0; background: var(--d-bg); color: var(--d-fg); font-family: var(--font); font-size: 17px; line-height: 1.47;
  letter-spacing: -0.022em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
}
img, canvas, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
code { font-family: var(--mono); font-size: .88em; letter-spacing: 0; }
sup { font-size: .55em; line-height: 0; vertical-align: super; letter-spacing: 0; }
.fn { white-space: nowrap; }
.fn a { color: inherit; text-decoration: none; opacity: .8; padding: 0 1px; }
.fn a:hover, .fn a:focus-visible { text-decoration: underline; opacity: 1; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(var(--wrap), 100% - 44px); margin: 0 auto; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.center { text-align: center; }
@media (max-width: 480px) { .wrap { width: calc(100% - 32px); } }

/* ------------------------------------------------------------------------------------------------- type scale */
.eyebrow { font-size: 21px; line-height: 1.19; font-weight: 600; letter-spacing: .011em; margin: 0 0 12px; color: var(--d-soft); }
.display { font-size: clamp(40px, 7vw, 96px); line-height: 1.04; font-weight: 600; letter-spacing: -0.015em; margin: 0; }
.h2 { font-size: clamp(38px, 5.6vw, 80px); line-height: 1.05; font-weight: 600; letter-spacing: -0.015em; margin: 0; }
.h3 { font-size: clamp(28px, 3.4vw, 48px); line-height: 1.08; font-weight: 600; letter-spacing: -0.003em; margin: 0; }
.intro { font-size: clamp(19px, 1.75vw, 24px); line-height: 1.38; font-weight: 500; letter-spacing: .009em; color: var(--d-soft); margin: 24px 0 0; }
.intro b, .intro strong { color: var(--d-fg); font-weight: 600; }
.display, .h2, .h3, .lesson h3, .step h3 { text-wrap: balance; }
.small { font-size: 14px; line-height: 1.43; letter-spacing: -0.016em; color: var(--d-muted); }
@media (max-width: 480px) { .eyebrow { font-size: 18px; } }

/* ------------------------------------------------------------------------------------------- the global bar */
.gbar { position: relative; z-index: 30; height: 44px; background: rgba(0, 0, 0, .8); }
.gbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--d-fg); }
.mark { width: 22px; height: 22px; border-radius: 6px; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 700; letter-spacing: 0; }
.gbar nav { display: flex; gap: 24px; font-size: 12px; }
.gbar nav a { text-decoration: none; color: #d2d2d7; opacity: .9; }
.gbar nav a:hover { color: #fff; }
@media (max-width: 420px) { .gbar nav { gap: 14px; } }

/* ------------------------------------------------------------------------------------------- the chapter nav */
.chapters { position: sticky; top: 0; z-index: 40; height: var(--nav-h); background: rgba(22, 22, 23, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, .08); color: var(--d-fg); }
.chapters .wrap { display: flex; align-items: center; height: 100%; gap: 18px; }
.ch-title { font-size: 21px; font-weight: 600; letter-spacing: .011em; text-decoration: none; white-space: nowrap; margin-right: auto; }
.ch-list { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.ch-list a { font-size: 12px; text-decoration: none; color: #d2d2d7; padding: 6px 0; position: relative; white-space: nowrap; }
.ch-list a:hover { color: #fff; }
.ch-list a[aria-current="true"] { color: #fff; }
.ch-list a[aria-current="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: #fff; }
.ch-cta { background: #0071e3; color: #fff; text-decoration: none; font-size: 12px; line-height: 1; padding: 7px 13px; border-radius: 980px; white-space: nowrap; }
.ch-cta:hover { background: #0077ed; }
.ch-toggle { display: none; background: none; border: 0; width: 36px; height: 36px; padding: 0; cursor: pointer; }
.ch-toggle svg { width: 14px; height: 14px; margin: auto; transition: transform .3s var(--ease); }
.ch-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
@media (max-width: 1000px) {
  .ch-title { font-size: 19px; }
  .ch-toggle { display: block; order: 2; }
  .ch-cta { order: 3; }
  .ch-list { position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0; padding: 6px 22px 18px;
    background: rgba(22, 22, 23, .96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, .08); visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s; }
  .ch-list.open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
  .ch-list a { display: block; font-size: 17px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .ch-list a[aria-current="true"]::after { display: none; }
}
/* without script the chevron can't open the list: show the chapters as a strip under the bar instead */
@media (max-width: 1000px) {
  html:not(.js) .ch-toggle { display: none; }
  html:not(.js) .chapters { height: auto; }
  html:not(.js) .chapters .wrap { flex-wrap: wrap; padding: 8px 0; row-gap: 4px; }
  html:not(.js) .ch-list { position: static; visibility: visible; opacity: 1; transform: none; flex-direction: row; flex-wrap: wrap;
    gap: 4px 16px; padding: 0; background: none; border: 0; order: 4; width: 100%; }
  html:not(.js) .ch-list a { font-size: 13px; padding: 4px 0; border: 0; }
}

/* ---------------------------------------------------------------------------------------------- buttons */
.ctas { display: flex; gap: 22px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: #0071e3; color: #fff; text-decoration: none; font-size: 17px;
  line-height: 1.18; padding: 12px 22px; border-radius: 980px; border: 0; cursor: pointer; }
.btn:hover { background: #0077ed; }
/* "Download (soon)": the server's download isn't published yet, so a label where a link will be */
.soon { display: inline-block; font-size: 13px; font-weight: 600; line-height: 1; padding: 5px 10px; border-radius: 980px;
  box-shadow: inset 0 0 0 1px var(--line); color: var(--fg); margin-right: 4px; vertical-align: 1px; letter-spacing: 0; }
.ch-cta.soon-btn, .ch-cta.soon-btn:hover { background: rgba(255, 255, 255, .12); color: #d2d2d7; cursor: default; }
.btn.soon-btn, .btn.soon-btn:hover, .price .btn.soon-btn { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); cursor: default; }
.more { color: var(--d-link); text-decoration: none; font-size: 17px; }
.more:hover { text-decoration: underline; }
.more::after { content: " \203A"; }

/* ============================================================================================== THE FLIGHT */
/* Without script, or with reduced motion: a column of still pictures, each with its caption under it. */
.flight { position: relative; background: var(--d-bg); color: var(--d-fg); }
.flight .sticky { position: relative; }
.flight canvas.seq { display: none; }
.flight .beats { width: min(1260px, 100% - 44px); margin: 0 auto; padding: 56px 0 120px; display: grid; gap: 72px; }
.flight .beat { margin: 0; }
.flight .beat .still { width: 100%; height: auto; border-radius: 18px; background: #0b0d12; }
.flight .beat figcaption { max-width: 760px; margin: 26px auto 0; }
.flight .beat { text-align: center; }
.flight .beat:not(.hero) > p, .flight .beat figcaption > p:not(.kicker) { color: var(--d-soft); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.42; font-weight: 500; margin: 12px auto 0; max-width: 680px; }
.flight .kicker { margin: 0 0 6px; font-size: 14px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--d-soft); }
.flight .kicker.n1 { color: var(--n1); }
.flight .kicker.n2 { color: var(--n2); }
.c-n1 { color: var(--n1); font-weight: 600; }
.c-n2 { color: var(--n2); font-weight: 600; }
.flight .hero { text-align: center; padding-top: 24px; }
.flight .hero .eyebrow { font-size: clamp(16px, 1.5vw, 21px); }
.flight .hero .display { font-size: clamp(38px, 6.4vw, 92px); }
.flight .hero .intro { max-width: 840px; margin: 22px auto 0; }
.flight .hero .meta { margin-top: 18px; }
.flight .hero-still { margin-top: -24px; }

/* With motion: a tall section, a sticky stage, the canvas behind and the beats over it, each faded in by its range. */
.motion .flight { height: var(--h, 1000vh); }
.motion .flight .sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.motion .flight canvas.seq { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.motion .flight .beats { position: absolute; inset: 0; width: auto; margin: 0; padding: 0; display: block; }
.motion .flight .beat { position: absolute; opacity: 0; visibility: hidden; will-change: opacity, transform; }
.motion .flight .beat .still, .motion .flight .hero-still { display: none; }
.motion .flight .beat figcaption { margin: 0; max-width: none; }
/* over the overviews: across the top, on a soft scrim that the dark sky above the house continues */
.motion .flight .beat.top { left: 0; right: 0; top: 0; padding: calc(var(--nav-h) + 3.6vh) 22px 13vh; text-align: center;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .6) 48%, rgba(0, 0, 0, 0) 100%); }
.motion .flight .beat.top .h3 { font-size: clamp(30px, min(3.6vw, 5.6vh), 52px); text-shadow: 0 2px 24px rgba(0, 0, 0, .6); }
.motion .flight .beat.top:not(.hero) > p, .motion .flight .beat.top figcaption > p:not(.kicker) { font-size: clamp(17px, min(1.5vw, 2.4vh), 21px); text-shadow: 0 1px 14px rgba(0, 0, 0, .8); }
.motion .flight .hero { padding-top: calc(var(--nav-h) + 3.2vh); padding-bottom: 16vh; }
.motion .flight .hero .eyebrow { font-size: clamp(15px, min(1.5vw, 2.3vh), 21px); margin-bottom: 1vh; }
.motion .flight .hero .display { font-size: clamp(36px, min(5.6vw, 7.6vh), 84px); }
.motion .flight .hero .intro { font-size: clamp(17px, min(1.6vw, 2.5vh), 24px); margin-top: 1.8vh; max-width: 800px; text-shadow: 0 1px 16px rgba(0, 0, 0, .9); }
.motion .flight .hero .ctas { margin-top: 2.6vh; }
.motion .flight .hero .meta { margin-top: 1.6vh; }
/* over the rooms, lit edge to edge: a card on its own scrim, top left where the picture is softest */
.motion .flight .beat.card { left: max(22px, 4vw); top: calc(var(--nav-h) + 4vh); width: min(440px, 100% - 44px); padding: 22px 26px 24px;
  border-radius: 24px; background: rgba(16, 16, 18, .72); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35); text-align: left; }
.motion .flight .beat.card figcaption { text-align: left; }
.motion .flight .beat.card .h3 { font-size: clamp(26px, min(2.6vw, 4.4vh), 38px); }
.motion .flight .beat.card figcaption > p:not(.kicker) { font-size: 17px; margin: 10px 0 0; text-align: left; }

/* phones and portrait screens: the portrait frames sit whole at the bottom, every caption above them on black */
@media (max-width: 734px), (max-aspect-ratio: 1/1) {
  .motion .flight .beat.top, .motion .flight .beat.card { left: 0; right: 0; top: 0; width: auto; border-radius: 0; box-shadow: none;
    padding: calc(var(--nav-h) + 16px) 20px 40px; text-align: left; -webkit-backdrop-filter: none; backdrop-filter: none;
    background: linear-gradient(to bottom, #000 0%, #000 74%, rgba(0, 0, 0, 0) 100%); }
  .motion .flight .beat, .motion .flight .beat figcaption { text-align: left; }
  .motion .flight .beat.top .h3, .motion .flight .beat.card .h3 { font-size: clamp(24px, 6.4vw, 34px); text-shadow: none; }
  .motion .flight .beat.top:not(.hero) > p, .motion .flight .beat.top figcaption > p:not(.kicker), .motion .flight .beat.card figcaption > p:not(.kicker) {
    font-size: 16px; line-height: 1.4; margin: 8px 0 0; text-shadow: none; max-width: 560px; text-align: left; }
  .motion .flight .hero { text-align: left; padding-bottom: 28px; }
  .motion .flight .hero .eyebrow { font-size: 15px; }
  .motion .flight .hero .display { font-size: clamp(32px, 9vw, 52px); }
  .motion .flight .hero .intro { font-size: 17px; margin: 12px 0 0; text-shadow: none; }
  .motion .flight .hero .ctas { justify-content: flex-start; gap: 18px; margin-top: 18px; }
  .motion .flight .hero .meta { display: none; }
  .flight .kicker { font-size: 12px; }
}
@media (max-width: 734px) {
  .flight .beats { gap: 56px; padding: 40px 0 88px; }
  .flight .beat .still { border-radius: 12px; }
  .flight .beat, .flight .hero { text-align: left; }
  .flight .beat:not(.hero) > p, .flight .beat figcaption > p:not(.kicker) { margin-left: 0; }
  .flight .hero .ctas { justify-content: flex-start; }
}

/* ---------------------------------------------------------------------------------------------- chapters */
.dark { background: var(--d-bg); color: var(--d-fg); }
.sec { padding: clamp(88px, 12vw, 160px) 0; }
.head { max-width: 860px; }
.head.center { margin: 0 auto; }
.sub-head { margin-top: clamp(96px, 10vw, 140px) !important; }
.sub-head .h3 + .intro { margin-top: 14px; }

/* the architecture: the four layers, joined by lines that stretch with the page */
.arch { margin: 72px auto 0; max-width: 820px; }
.a-row { display: flex; justify-content: center; }
.a-row.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.a-box { background: var(--d-card); border: 1px solid #2c2c2f; border-radius: 20px; padding: 18px 22px 20px; text-align: center; width: min(100%, 520px); }
.a-box h3 { margin: 0; font-size: 19px; line-height: 1.2; font-weight: 600; letter-spacing: .01em; }
.a-box p { margin: 6px 0 0; font-size: 14px; line-height: 1.42; color: var(--d-soft); }
.a-box code { color: var(--d-fg); }
.a-box.node { width: auto; border-top: 3px solid var(--n1); }
.a-box.n2 { border-top-color: var(--n2); }
.a-box.lb { box-shadow: inset 0 0 0 1px rgba(154, 125, 255, .35); }
.a-box.db { position: relative; border: 0; background: linear-gradient(var(--d-card), var(--d-card)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; }
.a-link { width: 100%; height: 44px; overflow: visible; }
.a-link path { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.a-link .flow { stroke: #5c5c60; stroke-dasharray: 5 7; }
.a-link .flow.b { stroke: var(--n1); }
.a-link .flow.v { stroke: var(--n2); }
.a-link .db-l { stroke: #6e6e73; }
.motion .a-link .flow { animation: flow 1.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.arch figcaption { margin-top: 18px; text-align: center; }
@media (max-width: 600px) {
  .a-row.pair { gap: 12px; }
  .a-box { padding: 14px 14px 16px; border-radius: 16px; }
  .a-box h3 { font-size: 17px; }
  .a-box p { font-size: 13px; }
}

.pillars { list-style: none; margin: 88px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 22px; }
.pillars li { border-top: 1px solid var(--d-line); padding-top: 22px; }
.pillars h3 { margin: 0; font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: .011em; }
.pillars p { margin: 10px 0 0; color: var(--d-soft); font-size: 15px; line-height: 1.47; }
.pillars code { color: var(--d-fg); }
@media (max-width: 1000px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pillars { grid-template-columns: 1fr; gap: 28px; margin-top: 64px; } }

/* the loop of both streams */
.loop-fig { margin: 64px auto 0; max-width: 1100px; }
.loop-fig video { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 24px; background: #0b0d12; object-fit: cover; }
.loop-fig figcaption { margin-top: 12px; text-align: center; }
@media (max-width: 600px) { .loop-fig video { border-radius: 14px; } }

/* big numbers */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 56px; }
.kpi { margin: 0; background: var(--d-card); border-radius: 28px; padding: 34px 32px 30px; display: flex; flex-direction: column; min-width: 0; }
.kpi .scale-note { margin-top: auto; }
.kpi .num { font-size: clamp(56px, 6vw, 88px); line-height: 1; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.kpi .what { margin: 14px 0 22px; font-size: 19px; line-height: 1.32; color: var(--d-soft); font-weight: 500; }
.kpi .what b { color: var(--d-fg); font-weight: 600; }
.mini-tl { list-style: none; margin: auto 0 0; padding: 18px 0 0; border-top: 1px solid var(--d-line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mini-tl.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mini-tl li { display: grid; gap: 2px; min-width: 0; }
.mini-tl b { font-size: 17px; font-weight: 600; color: var(--d-fg); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini-tl span { font-size: 13px; color: var(--d-muted); line-height: 1.3; }
.mini-tl:not(.two) { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 480px) { .mini-tl b { font-size: 15px; } }
@media (max-width: 1068px) { .kpis { grid-template-columns: 1fr; max-width: 620px; margin-left: auto; margin-right: auto; } }

/* bars */
.bars { display: grid; gap: 12px; }
.bar { display: grid; gap: 5px; }
.bar .name { font-size: 14px; color: var(--d-soft); display: flex; justify-content: space-between; gap: 12px; }
.bar .name b { color: var(--d-fg); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar .line { position: relative; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.bar .fill { display: block; height: 100%; width: max(3px, calc(var(--v) * 100%)); border-radius: 4px; background: #48484a;
  transform-origin: left; transform: scaleX(var(--s, 1)); }
.bar.rr .fill { background: #8E8E93; }
.bar.lr .fill { background: var(--grad); }
.motion .bars:not(.in) .fill { --s: 0; }
.motion .bars .fill { transition: transform 1.1s var(--ease); }
.motion .bars .bar:nth-child(2) .fill { transition-delay: .1s; }
.motion .bars .bar:nth-child(3) .fill { transition-delay: .2s; }
.motion .bars .bar:nth-child(4) .fill { transition-delay: .3s; }
.scale-note { font-size: 12px; color: var(--d-muted); margin: 0 0 10px; }

/* small multiples: every step, one scale */
.groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 48px; }
.group { margin: 0; background: var(--d-card); border-radius: 24px; padding: 26px 26px 28px; min-width: 0; }
.group figcaption { font-size: 21px; font-weight: 600; letter-spacing: .011em; margin-bottom: 18px; }
.g-times { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--d-line); font-size: 13px; line-height: 1.45; color: var(--d-muted); }
.g-times b { color: var(--d-fg); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 1000px) { .groups { grid-template-columns: 1fr; max-width: 620px; margin-left: auto; margin-right: auto; } }

/* the reference marks: sums of the measured numbers, drawn across the bar */
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; margin-top: clamp(96px, 10vw, 140px);
  background: var(--d-card); border-radius: 28px; padding: clamp(28px, 4vw, 48px); }
.why .eyebrow { font-size: 17px; }
.why .h3 { font-size: clamp(28px, 3vw, 40px); }
.why-text p:not(.eyebrow) { color: var(--d-soft); font-size: 17px; line-height: 1.5; margin: 16px 0 0; }
.why .bars { gap: 26px; }
.why .bar .line { height: 12px; border-radius: 6px; }
.why .bar .fill { border-radius: 6px; }
.why .mark { position: absolute; top: 0; bottom: 0; left: calc(var(--r) * 100% - 1px); width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); }
.why .mark-note { font-size: 13px; color: var(--d-muted); }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; gap: 32px; } }

/* the timeline of a failover */
.tl { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: tl; }
.tl li { position: relative; padding: 30px 22px 0 0; border-top: 2px solid #3a3a3d; min-width: 0; }
.tl li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--d-bg); box-shadow: inset 0 0 0 2px #8E8E93; }
.tl li:nth-child(2)::before { background: var(--n1); box-shadow: none; }
.tl li:nth-child(3)::before { background: var(--n2); box-shadow: none; }
.tl b { display: block; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.tl span { display: block; margin-top: 8px; color: var(--d-soft); font-size: 15px; line-height: 1.45; }
@media (max-width: 900px) {
  .tl { grid-template-columns: 1fr; max-width: 620px; margin-left: auto; margin-right: auto; }
  .tl li { border-top: 0; border-left: 2px solid #3a3a3d; padding: 0 0 28px 26px; }
  .tl li:last-child { padding-bottom: 0; }
  .tl li::before { top: 4px; left: -7px; }
}

/* result cards */
.hls { list-style: none; margin: clamp(72px, 8vw, 110px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.hl { background: var(--d-card); border-radius: 24px; padding: 28px 28px 26px; min-width: 0; display: flex; flex-direction: column; }
.hl h3 { margin: 0; font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: .011em; }
.hl p { margin: 6px 0 18px; font-size: 14px; color: var(--d-muted); }
.hl .x { color: var(--d-fg); font-size: 44px; line-height: 1; font-weight: 600; letter-spacing: -0.02em; margin: auto 0 10px; font-variant-numeric: tabular-nums; }
.hl .x small { display: block; font-size: 15px; font-weight: 500; color: var(--d-soft); letter-spacing: -0.01em; margin-top: 8px; }
.hl .hl-note { margin: 4px 0 0; color: var(--d-soft); font-size: 15px; }
.hl code { color: var(--d-fg); }
@media (max-width: 1000px) { .hls { grid-template-columns: 1fr; max-width: 620px; margin-left: auto; margin-right: auto; } }

/* the measured medians */
.numbers { margin-top: 26px; }
.numbers summary { cursor: pointer; color: var(--d-link); font-size: 17px; list-style: none; display: inline-block; }
.numbers summary::-webkit-details-marker { display: none; }
.numbers summary::after { content: " +"; }
.numbers[open] summary::after { content: " \2212"; }
.numbers .scroll-x { margin-top: 18px; }
.numbers p { color: var(--d-muted); font-size: 14px; margin: 14px 0 0; max-width: 900px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.35; letter-spacing: -0.01em; }
.tbl caption { text-align: left; }
.tbl th, .tbl td { padding: 10px 10px; border-bottom: 1px solid var(--d-line); text-align: right; vertical-align: top; font-variant-numeric: tabular-nums; }
.tbl th[scope="row"], .tbl thead th:first-child { text-align: left; font-weight: 500; }
.tbl thead th { font-size: 12px; font-weight: 600; color: var(--d-muted); vertical-align: bottom; }
.tbl td.lead { font-weight: 600; color: var(--d-fg); }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.scroll-x .tbl { min-width: 560px; }
.hap { margin-top: clamp(72px, 8vw, 110px); }
.hap .sub-intro { color: var(--d-soft); margin: 12px 0 18px; }
.hap .results { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.hap .results li { border-top: 1px solid var(--d-line); padding-top: 16px; color: var(--d-soft); font-size: 15px; }
.hap .results b { display: block; color: var(--d-fg); font-size: 28px; font-weight: 600; margin-bottom: 6px; }
@media (max-width: 900px) { .hap .results { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------------------------- light text chapters */
.light-sec { background: var(--bg); color: var(--fg); }
.light-sec.alt { background: var(--bg-alt); }
.light-sec .eyebrow { color: var(--muted); }
.light-sec .intro { color: var(--muted); }
.light-sec .intro b { color: var(--fg); }
.light-sec .small { color: var(--muted); }
.light-sec a { color: var(--link); }
.light-sec p code, .light-sec li > p code { background: var(--bg-alt); border-radius: 4px; padding: 0 3px; }
/* openbi.no: a long path in running text (the Windows hosts file) wraps on a phone instead of widening the page */
p code { overflow-wrap: anywhere; }
.light-sec.alt p code { background: var(--card); }

/* code blocks: a terminal, dark in both themes */
.cmd { margin: 14px 0 22px; background: var(--code-bg); color: var(--code-fg); border-radius: 14px; position: relative; min-width: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.cmd figcaption { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--code-cap); padding: 12px 18px 0; padding-right: 84px; }
.cmd pre { margin: 0; padding: 10px 18px 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; font-family: var(--mono); font-size: 13.5px; line-height: 1.6; letter-spacing: 0; tab-size: 4; }
.cmd pre:focus-visible { outline-offset: -2px; border-radius: 14px; }
.cmd code { font-size: inherit; white-space: pre; }
.cmd .copy { position: absolute; top: 8px; right: 8px; font-size: 12px; line-height: 1; padding: 7px 11px; border-radius: 980px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .1); color: #f5f5f7; }
.cmd .copy:hover { background: rgba(255, 255, 255, .18); }
.cmd .copy.done { background: rgba(48, 209, 88, .22); }
@media (max-width: 480px) { .cmd { border-radius: 12px; margin-left: -4px; margin-right: -4px; } .cmd pre { font-size: 12.5px; padding: 8px 14px 14px; } .cmd figcaption { padding-left: 14px; } }

/* the lessons */
.lessons { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; counter-reset: lesson; }
.lesson { background: var(--bg-alt); border-radius: 24px; padding: 30px 30px 26px; min-width: 0; counter-increment: lesson; }
.lesson::before { content: counter(lesson); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--fg); color: var(--bg);
  font-size: 16px; font-weight: 600; margin-bottom: 18px; }
.lesson h3 { margin: 0; font-size: 24px; line-height: 1.17; font-weight: 600; letter-spacing: .009em; }
.lesson p { margin: 12px 0 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.lesson .cmd { margin-bottom: 0; margin-top: 18px; }
@media (max-width: 900px) { .lessons { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .lesson { padding: 24px 18px 22px; border-radius: 20px; } }

/* the guide, and beside it on wide screens the steps' index, which stays in view */
.guide { display: grid; grid-template-columns: minmax(0, 900px); gap: 0 56px; }
.toc { display: none; }
@media (min-width: 1180px) {
  .guide { grid-template-columns: minmax(0, 900px) minmax(0, 1fr); }
  .toc { display: block; position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; margin-top: 56px; }
  .toc p { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
  .toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
  .toc a { display: flex; gap: 10px; align-items: baseline; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent;
    font-size: 15px; color: var(--muted); text-decoration: none; }
  .toc a b { font-weight: 600; color: var(--fg); min-width: 10px; }
  .toc a:hover { color: var(--fg); }
  .toc a[aria-current="true"] { color: var(--fg); border-left-color: var(--fg); }
}
.before { margin-top: 56px; max-width: 900px; scroll-margin-top: calc(var(--nav-h) + 12px); background: var(--card); border-radius: 24px; padding: 28px 30px 8px; }
.before h3 { margin: 0; font-size: 21px; font-weight: 600; }
.before p { margin: 10px 0 0; color: var(--muted); font-size: 16px; }
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 22px; max-width: 900px; }
.step { background: var(--card); border-radius: 24px; padding: 32px 30px 12px; min-width: 0; scroll-margin-top: calc(var(--nav-h) + 12px); }
.step h3 { margin: 0 0 6px; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; font-weight: 600; display: flex; align-items: baseline; gap: 14px; }
.step .n { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 19px;
  position: relative; top: -2px; align-self: center; }
.step > p { margin: 18px 0 0; color: var(--muted); font-size: 17px; line-height: 1.5; }
.step > p + .cmd { margin-top: 12px; }
@media (max-width: 480px) { .before, .step { padding-left: 18px; padding-right: 18px; border-radius: 20px; } .step .n { width: 34px; height: 34px; font-size: 16px; } }

/* not yet */
.nots { list-style: none; margin: 64px auto 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 1060px; }
.nots li { background: var(--d-card); border-radius: 24px; padding: 28px 30px; }
.nots li::before { content: ""; display: block; width: 10px; height: 10px; border-radius: 50%; background: #ff9f0a; box-shadow: 0 0 12px rgba(255, 159, 10, .7); margin-bottom: 16px; }
.nots h3 { margin: 0; font-size: 21px; line-height: 1.2; font-weight: 600; }
.nots p { margin: 10px 0 0; color: var(--d-soft); font-size: 16px; line-height: 1.5; }
.nots code { color: var(--d-fg); }
@media (max-width: 800px) { .nots { grid-template-columns: 1fr; } }

/* pricing and sizing */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 56px; }
.price { background: var(--bg-alt); border-radius: 28px; padding: 34px 32px 32px; display: flex; flex-direction: column; align-items: flex-start; }
.price h3 { margin: 0; font-size: 14px; font-weight: 600; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.price .tag { font-size: 12px; font-weight: 600; border: 1px solid var(--line); border-radius: 980px; padding: 3px 9px; color: var(--muted); }
.price .big { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.18; font-weight: 600; color: var(--fg); margin: 12px 0 0; letter-spacing: -0.005em; text-wrap: balance; }
.price p { color: var(--muted); font-size: 16px; line-height: 1.5; margin: 14px 0 0; }
.price .btn { margin-top: 26px; color: #fff; }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; } }
.refs-title { margin-top: clamp(80px, 9vw, 120px); }
.refs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 36px; }
.ref { background: var(--bg-alt); border-radius: 24px; padding: 28px; }
.ref .src { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.ref h4 { margin: 0; font-size: 19px; line-height: 1.26; font-weight: 600; letter-spacing: .011em; }
.ref h4 a { text-decoration: none; }
.ref h4 a:hover { text-decoration: underline; }
.ref p { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.47; }
.ref q { color: var(--fg); }
.refs-line { margin: 36px 0 0; max-width: 860px; font-size: 19px; line-height: 1.5; color: var(--muted); }
.refs-line b { color: var(--fg); }
@media (max-width: 1000px) { .refs { grid-template-columns: 1fr; max-width: 680px; } }
@media (max-width: 480px) { .ref, .price { padding: 24px 18px; } }

/* -------------------------------------------------------------------------------------------- footnotes */
.notes { background: var(--bg-alt); color: var(--muted); font-size: 12px; line-height: 1.5; letter-spacing: -0.01em; padding: 40px 0 64px; }
.notes .renders { margin: 0 0 16px; }
.notes ol { margin: 0; padding-left: 1.6em; display: grid; gap: 10px; }
.notes li:target { color: var(--fg); }
.notes a { color: var(--link); overflow-wrap: anywhere; }
.notes code { font-size: 11px; }
.legal { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 8px; }
.legal p { margin: 0; }
.foot { background: var(--bg-alt); color: var(--muted); font-size: 12px; padding: 0 0 40px; }
.foot .wrap { border-top: 1px solid var(--line); padding-top: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--fg); text-decoration: none; }

/* -------------------------------------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* openbi.no: room for "Buy" in the bar on a phone: the BI mark without the name (the page's title is just below), then tighter gaps */
@media (max-width: 479px) { .gbar .brand { font-size: 0; gap: 0; } .gbar nav { gap: 14px; } }
@media (max-width: 359px) { .gbar nav { gap: 10px; } .gbar nav a[href="/"] { display: none; } }