/* Mrrp Research (/tutkimus/, /en/research/): the research branch's own site.
   Polished old-school lab: the whole viewport framed in candy pink with print registration marks, a nav with the MRRP badge in the middle and a
   jump-to palette under it, giant thin condensed titles, and full-bleed bands that alternate plum night and magenta,
   each with dithered duotone imagery made by script from our own recordings and CC0 photos (logo/mrrp-research/
   source/dither.py; provenance in notes/img-provenance/research/). One reading order, centred: bands carry the
   polish, not columns. Faces: Big Shoulders Display (titles), Instrument Sans (prose), Departure Mono (labels and
   data), Jersey 25 only in the badge and seal. All OFL 1.1, licences in /fonts/LICENCES.md. Only this page loads it. */

@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/big-shoulders-display-var.woff2") format("woff2"); }
@font-face { font-family: "Departure Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/departure-mono.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; src: url("/fonts/instrument-sans-var.woff2") format("woff2"); }

:root {
  --plum: #1b1a2e; --plum-2: #252340; --plum-3: #3d3860; --edge: #7268a0;
  --magenta: #c8236f; --pink: #ff8fc4; --milk: #f7eef4; --dim: #ab9fc6; --on-pink: #ffe6f1;
  --visited: #cdb2ff; --err: #ff7a7a;
  --disp: "Big Shoulders Display", "Arial Narrow", sans-serif; --sans: "Instrument Sans", system-ui, sans-serif;
  --mono: "Departure Mono", ui-monospace, "Cascadia Mono", monospace;
  --g: clamp(18px, 3vw, 64px); --col: 840px; --wide: 1120px; --sec: clamp(5rem, 10vw, 9rem);
  --t: 1.0625rem; --t-lead: clamp(1.2rem, 1.25vw, 1.6rem); --t-sm: 13.75px; --t-xs: 12px;
  --ease: cubic-bezier(.2, .7, .15, 1);
  color-scheme: dark; scrollbar-color: var(--pink) var(--plum); accent-color: var(--pink); caret-color: var(--pink);
}
@media (min-width: 1800px) { :root { --t: 1.18rem; --col: 920px; --wide: 1240px; --t-sm: 15px; } }
@media (min-width: 2300px) { :root { --t: 1.3rem; --col: 1000px; --wide: 1360px; --t-sm: 16.5px; --t-xs: 13.75px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--plum); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--plum); color: var(--milk); font-family: var(--sans); font-size: var(--t); line-height: 1.6; }
::selection { background: var(--pink); color: var(--plum); }
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
i { font-style: normal; }
code { font-family: var(--mono); font-size: .9em; color: var(--pink); }
:focus-visible { outline: 2px dashed var(--milk); outline-offset: 3px; }
a { color: var(--pink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
a:hover { color: var(--milk); }
p a:not(.rx-b):visited, td a:visited, dd a:visited { color: var(--visited); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 60; padding: .5rem .9rem; background: var(--pink); color: var(--plum); font-family: var(--mono); text-decoration: none; }
.skip:focus { top: 1rem; }
.rx-arr { display: inline-block; width: 1em; height: 1em; vertical-align: -.15em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: square; }
.rx-heart { display: inline-block; width: .78em; height: auto; fill: var(--pink); shape-rendering: crispEdges; }
.rx-dim { color: var(--dim); }

/* ---------- The frame: a thin pink border round the whole viewport, a notched corner ---------- */
.rx { position: relative; }
.rx-frame { position: fixed; inset: 0; z-index: 40; pointer-events: none; border: 3px solid var(--pink); }
/* registration marks in the four corners, as on a print sheet */
.rx-corner { position: absolute; inset: 9px; }
.rx-frame::before, .rx-frame::after, .rx-corner::before, .rx-corner::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--pink);
  background: linear-gradient(var(--pink), var(--pink)) center / 1px 100% no-repeat, linear-gradient(var(--pink), var(--pink)) center / 100% 1px no-repeat; }
.rx-frame::before { top: 8px; left: 8px; } .rx-frame::after { top: 8px; right: 8px; } .rx-corner::before { bottom: -1px; left: -1px; } .rx-corner::after { bottom: -1px; right: -1px; }

/* ---------- Header: utility line, the nav spread round the badge, the palette bar ---------- */
.rx-head { padding: 1rem var(--g) 0; }
.rx-util { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: var(--mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .12em; }
.rx-parent { display: inline-flex; align-items: baseline; gap: .45rem; color: var(--dim); text-decoration: none; }
.rx-parent .rx-arr { align-self: center; }
.rx-host { color: var(--pink); }
.rx-parent:hover, .rx-parent:hover .rx-host { color: var(--milk); }
.rx-lang { display: inline-flex; border: 1px solid var(--edge); }
.rx-lang a { padding: .15rem .55rem; color: var(--dim); text-decoration: none; }
.rx-lang a[aria-current="page"] { background: var(--pink); color: var(--plum); }
.rx-lang a:not([aria-current]):hover { color: var(--milk); }
.rx-lang a[aria-current="page"]:hover { color: var(--plum); }
.rx-nav { display: grid; grid-template-columns: 1fr 1fr auto 1fr 1fr; align-items: center; justify-items: center; max-width: var(--wide); margin: .4rem auto 0; font-family: var(--mono); font-size: var(--t-sm); text-transform: uppercase; letter-spacing: .16em; }
.rx-nav a { color: var(--milk); text-decoration: none; padding: .4rem .2rem; }
.rx-nav a:hover { color: var(--pink); }
.rx-mark { padding: 0 1rem !important; }
.rx-mark img { width: 58px; height: auto; transition: transform .25s steps(3, end); }
.rx-mark:hover img { transform: rotate(-4deg); }
.rx-k { display: flex; align-items: center; gap: .8rem; width: min(100%, 720px); margin: 1.1rem auto 0; padding: .55rem .7rem; border: 1px solid var(--magenta); background: var(--plum-2); color: var(--dim); font: inherit; font-family: var(--mono); font-size: var(--t-sm); text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s; }
.rx-k:hover { border-color: var(--pink); background: #2c2a4a; }
.rx-k img { width: 20px; height: 20px; flex: none; }
.rx-k-txt { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--milk); }
.rx-k-txt i { color: var(--dim); }
.rx-k-hint { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .12em; }
.rx-kbd { display: inline-flex; gap: .25rem; }
kbd { display: inline-block; min-width: 1.6em; padding: .05em .35em; border: 1px solid var(--edge); color: var(--milk); font-family: var(--mono); font-size: var(--t-xs); text-align: center; }

/* the palette dialog */
.rx-pal { width: min(92vw, 560px); margin: 14vh auto auto; padding: 0; border: 1px solid var(--pink); background: var(--plum); color: var(--milk); font-family: var(--mono); }
.rx-pal::backdrop { background: rgba(14, 12, 26, .72); }
.rx-pal-in { margin: 0; }
.rx-pal input { width: 100%; padding: 1rem 1.1rem; border: 0; border-bottom: 1px solid var(--plum-3); background: var(--plum-2); color: var(--milk); font: inherit; font-size: 1rem; outline: none; }
.rx-pal input::placeholder { color: var(--dim); }
.rx-pal ul { list-style: none; margin: 0; padding: .4rem 0; max-height: 50vh; overflow: auto; }
.rx-pal a { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 1.1rem; color: var(--milk); text-decoration: none; }
.rx-pal a small { color: var(--dim); font-size: var(--t-xs); text-align: right; }
.rx-pal a:hover, .rx-pal a:focus-visible { background: var(--pink); color: var(--plum); outline: none; }
.rx-pal a:hover small, .rx-pal a:focus-visible small { color: var(--plum); }
.rx-pal-foot { display: flex; gap: 1.2rem; padding: .6rem 1.1rem; border-top: 1px solid var(--plum-3); color: var(--dim); font-size: var(--t-xs); }

/* ---------- Type: tiny caps labels, giant thin titles, centred copy ---------- */
.rx-label { font-family: var(--mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .16em; color: var(--milk); text-align: center; }
.rx-label i { color: var(--pink); }
.rx-giant { font-family: var(--disp); font-weight: 200; text-transform: uppercase; letter-spacing: -.005em; line-height: .96; text-align: center; color: var(--milk); font-size: min(15vw, 22rem); text-wrap: balance; margin: 1.1rem auto 0; max-width: calc(100vw - 2 * var(--g)); }
.rx-h1 { font-size: min(21vw, 30rem); margin-top: .8rem; }
.rx-text { max-width: 60ch; margin: clamp(1.4rem, 3vw, 2.2rem) auto 0; padding: 0 var(--g); text-align: center; }
.rx-text p + p { margin-top: .9rem; }
.rx-lead { font-size: var(--t-lead); line-height: 1.45; }
.rx-center { text-align: center; }
.rx-pair { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: clamp(1.6rem, 3vw, 2.4rem); padding: 0 var(--g); }
.rx-pair-left { justify-content: flex-start; padding: 0; }
.rx-b { display: inline-flex; align-items: center; min-height: 2.9rem; padding: .7rem 1.1rem; font-family: var(--mono); font-size: var(--t-sm); text-transform: uppercase; letter-spacing: .1em; text-decoration: none; transition: background-color .2s, color .2s; }
.rx-b-dark { background: var(--plum-2); color: var(--milk); }
.rx-b-dark:hover { background: #312e55; color: var(--milk); }
.rx-b-pink { background: var(--pink); color: var(--plum); }
.rx-b-pink:hover { background: var(--milk); color: var(--plum); }
.rx-link { display: inline-flex; align-items: baseline; gap: .45em; font-family: var(--mono); font-size: var(--t-sm); text-transform: uppercase; letter-spacing: .1em; }
.rx-link .rx-arr { align-self: center; transition: transform .2s; }
.rx-link:hover .rx-arr { transform: translateX(3px); }
.rx-h3 { font-family: var(--disp); font-weight: 300; text-transform: uppercase; font-size: clamp(2rem, 3vw, 3.4rem); line-height: .9; color: var(--milk); margin: 3.2rem 0 1.1rem; }
.rx-h3 small { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .1em; color: var(--dim); text-transform: none; }
.rx-h2 { font-family: var(--disp); font-weight: 200; text-transform: uppercase; font-size: clamp(3rem, 6vw, 6.5rem); line-height: .85; margin-bottom: 1.1rem; }
.rx-col { width: min(100% - 2 * var(--g), var(--col)); margin: clamp(2.5rem, 5vw, 4rem) auto 0; }
.rx-aside { margin-top: 1.4rem; color: var(--dim); font-size: .95em; }

/* ---------- Hero ---------- */
.rx-hero { padding: clamp(2rem, 5vh, 4rem) 0 clamp(3rem, 7vh, 5rem); }

/* ---------- Bands: full-bleed magenta between plum sections ---------- */
.rx-sec { padding: var(--sec) 0 0; }
.rx-band { padding: 0 0 var(--sec); position: relative; }
.rx-sec + .rx-band { margin-top: var(--sec); }
.rx-band-pink { background: var(--magenta); color: var(--milk); --dim: var(--on-pink); }
.rx-band-pink .rx-label i { color: var(--on-pink); }
.rx-band-pink a:not(.rx-b) { color: var(--milk); }
.rx-band-pink a:not(.rx-b):not(.rx-tag):hover { color: #fff; text-decoration-thickness: 2px; }
.rx-band > .rx-label:first-child { padding-top: var(--sec); }
.rx-strip { margin: 0 0 clamp(-6rem, -8vw, -3rem); position: relative; z-index: 0; }
.rx-strip { height: min(40vw, 680px); }
.rx-strip img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.rx-strip + .rx-giant { position: relative; z-index: 1; }
.rx-strip:has(+ .rx-label) { margin-bottom: clamp(2.2rem, 4vw, 3.5rem); }

/* dithered images: a palette PNG at half size, scaled up crisp */
.rx-dither { margin: 0; overflow: hidden; }
.rx-dither img { width: 100%; height: auto; image-rendering: pixelated; }
.rx-dither:hover img { animation: shimmer .5s steps(4, end); }
@keyframes shimmer { 25% { transform: translate(2px, 0); filter: brightness(1.15); } 50% { transform: translate(-1px, 1px); } 75% { transform: translate(1px, -1px); filter: brightness(.92); } }

.rx-rows { width: min(100% - 2 * var(--g), var(--wide)); margin: clamp(3rem, 6vw, 5rem) auto 0; display: grid; gap: clamp(3rem, 7vw, 6rem); }
.rx-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.rx-row-flip .rx-row-t { order: 2; }
.rx-row .rx-label { text-align: left; }
.rx-row h3 { font-family: var(--disp); font-weight: 300; text-transform: uppercase; font-size: clamp(2.1rem, 3.3vw, 3.8rem); line-height: .9; margin: .7rem 0 1rem; }
.rx-row p + p { margin-top: 1rem; }
.rx-row-t > p:not(.rx-label) { max-width: 46ch; }

/* ---------- purr: the stage, the cards, the details ---------- */
.rx-stage { position: relative; width: min(100% - 2 * var(--g), var(--wide)); margin: clamp(3rem, 6vw, 5rem) auto 0; padding: clamp(1.5rem, 5vw, 5rem) clamp(.75rem, 6vw, 6rem); background: #15141f; }
.rx-stage-bg { position: absolute; inset: 0; }
.rx-stage-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.rx-win { position: relative; max-width: 1004px; margin: 0 auto; border: 1px solid var(--pink); background: #201a26; }
.rx-win-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1rem; padding: .35rem .7rem; background: var(--plum-2); color: var(--dim); font-family: var(--mono); font-size: var(--t-xs); }
.rx-win video { width: 100%; height: auto; }
.rx-cards { list-style: none; width: min(100% - 2 * var(--g), var(--wide)); margin: clamp(3rem, 6vw, 5rem) auto 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2.2rem); }
.rx-card .rx-label { text-align: left; color: var(--dim); }
.rx-card h3 { font-family: var(--disp); font-weight: 300; text-transform: uppercase; font-size: clamp(1.8rem, 2.4vw, 2.8rem); line-height: .9; margin: .4rem 0 .9rem; }
.rx-card .rx-dither { background: var(--magenta); padding: 1rem; }
.rx-card .rx-dither img { width: 100%; aspect-ratio: 300 / 160; object-fit: cover; object-position: top left; }
.rx-tag { display: inline-flex; margin-top: .9rem; padding: .5rem .8rem; background: var(--plum-2); color: var(--milk); font-family: var(--mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .1em; text-decoration: none; }
.rx-tag:hover { background: var(--pink); color: var(--plum); }
.rx-hearts { list-style: none; margin: 0; padding: 0; }
.rx-hearts li { position: relative; padding: .6rem 0 .6rem 1.6rem; border-bottom: 1px solid var(--plum-3); }
.rx-hearts li:first-child { border-top: 1px solid var(--plum-3); }
.rx-hearts .rx-heart { position: absolute; left: 0; top: 1.15em; }
.rx-hearts b { font-weight: 600; color: var(--pink); }
.rx-spec { margin: 2.4rem 0 0; }
.rx-spec > div { display: grid; grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr); gap: 0 1.4rem; padding: .65rem 0; border-bottom: 1px solid var(--plum-3); }
.rx-spec > div:first-child { border-top: 1px solid var(--plum-3); }
.rx-spec dt { color: var(--dim); font-family: var(--mono); font-size: var(--t-sm); text-transform: uppercase; letter-spacing: .08em; padding-top: .15em; }
.rx-spec dd { margin: 0; }
.rx-modes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem 1.4rem; }
.rx-modes code { display: inline-block; min-width: 5.5ch; }
.rx-modes span { color: var(--dim); }
.rx-cmd { display: flex; align-items: stretch; border: 1px solid var(--pink); background: var(--plum-2); }
.rx-cmd code { flex: 1; min-width: 0; padding: .7rem .9rem; color: var(--milk); overflow-wrap: anywhere; font-size: var(--t-sm); }
.rx-cmd code::before { content: "$ " / ""; color: var(--pink); }
.rx-copy { flex: none; padding: 0 1.1rem; border: 0; background: var(--pink); color: var(--plum); font-family: var(--mono); font-size: var(--t-sm); text-transform: uppercase; letter-spacing: .1em; cursor: pointer; }
.rx-copy:hover { background: var(--milk); }
.rx-alt { margin-top: .7rem; color: var(--dim); font-size: var(--t-sm); overflow-wrap: anywhere; }

/* ---------- Tables, in plum panels on the band ---------- */
.rx-panel { width: min(100% - 2 * var(--g), var(--col)); margin: clamp(2.5rem, 5vw, 4rem) auto 0; padding: clamp(1rem, 2.5vw, 2rem); background: var(--plum); color: var(--milk); --dim: #ab9fc6; }
.rx-panel.rx-wide { width: min(100% - 2 * var(--g), var(--wide)); }
.rx-panel a { color: var(--pink) !important; }
.rx-panel a:hover { color: var(--milk) !important; }
.rx-table-wrap { overflow-x: auto; }
.rx-table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: var(--t-sm); }
.rx-table caption { caption-side: bottom; text-align: left; padding-top: .9rem; color: var(--dim); }
.rx-table th, .rx-table td { padding: .75rem 1.1rem .75rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--plum-3); font-weight: 400; }
.rx-table th:last-child, .rx-table td:last-child { padding-right: 0; }
.rx-table thead th { color: var(--dim); border-bottom: 1px solid var(--pink); vertical-align: bottom; white-space: nowrap; text-transform: uppercase; font-size: var(--t-xs); letter-spacing: .1em; }
.rx-table tbody tr:hover { background: var(--plum-2); }
.rx-table tbody th { color: var(--milk); }
.rx-table th small { display: block; color: var(--dim); font-size: 1em; white-space: nowrap; }
.rx-runs tbody th { min-width: 19ch; }
.rx-num { text-align: right !important; white-space: nowrap; }
.rx-res { color: var(--pink); }
.rx-date { white-space: nowrap; color: var(--dim); }
.rx-note { min-width: 22ch; font-family: var(--sans); font-size: .95em; }
.rx-note a { white-space: nowrap; }
.rx-bar, .rx-bar-h { width: 8rem; }
.rx-bar-h, .rx-bar { padding-left: .8rem !important; }
.rx-bar { vertical-align: middle !important; }
.rx-axis { display: flex; justify-content: space-between; }
.rx-cells { width: 100%; height: 18px; shape-rendering: crispEdges; }
.rx-cells .c-u { fill: var(--plum-3); }
.rx-cells .c-m, .rx-cells .c-v { fill: var(--pink); }
.rx-us th, .rx-us td { color: var(--pink) !important; }
.rx-us th small { color: var(--pink); }
.rx-cmp { margin-top: clamp(4rem, 8vw, 6rem); }
.rx-cmp > .rx-h3 { text-align: center; margin-top: 0; }
.rx-cmp-text { margin-top: 0; }
.rx-cmp-text p { color: var(--on-pink); }
.rx-cmp-text p:first-child { color: var(--milk); }
.rx-compare .rx-bar, .rx-compare .rx-bar-h { width: 40%; }
.rx-index td:first-child a { white-space: nowrap; }
.rx-index td:nth-child(2) { white-space: nowrap; color: var(--dim); }
.rx-index td:nth-child(3) { font-family: var(--sans); font-size: .95em; }
.rx-index caption { caption-side: top; padding: 0 0 .9rem; color: var(--milk); }
.rx-parent-dir td { color: var(--dim); }

/* ---------- Method ---------- */
.rx-defs { margin: 2.2rem 0 0; }
.rx-defs > div { display: grid; grid-template-columns: minmax(7rem, 10rem) minmax(0, 1fr); gap: 0 1.4rem; padding: 1rem 0; border-bottom: 1px solid var(--plum-3); }
.rx-defs > div:first-child { border-top: 1px solid var(--plum-3); }
.rx-defs dt { color: var(--pink); font-family: var(--mono); font-size: var(--t-sm); text-transform: uppercase; letter-spacing: .08em; padding-top: .2em; }
.rx-defs dd { margin: 0; }
.rx-more { margin-top: 1.6rem; }

/* ---------- For companies (on the band) ---------- */
.rx-services { list-style: none; width: min(100% - 2 * var(--g), var(--wide)); margin: clamp(3rem, 6vw, 5rem) auto 0; padding: 0; border-top: 1px solid rgba(255, 230, 241, .6); }
.rx-services > li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: .8rem clamp(1.5rem, 4vw, 4rem); padding: clamp(1.4rem, 2.6vw, 2.2rem) 0; border-bottom: 1px solid rgba(255, 230, 241, .35); }
.rx-services h3 { font-family: var(--disp); font-weight: 300; text-transform: uppercase; font-size: clamp(1.9rem, 2.4vw, 2.7rem); line-height: .9; }
.rx-svc-b > p:first-child { max-width: 62ch; }
.rx-tags { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; font-family: var(--mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .08em; }
.rx-tags li { padding: .2rem .5rem; border: 1px solid rgba(255, 230, 241, .55); }
.rx-price { margin-top: 1rem; font-family: var(--mono); font-size: var(--t-sm); text-transform: uppercase; letter-spacing: .08em; }
.rx-price span { color: var(--on-pink); opacity: .85; }
.rx-steps { list-style: none; margin: 0; padding: 0; counter-reset: st; border-top: 1px solid rgba(255, 230, 241, .55); }
.rx-steps li { counter-increment: st; display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); column-gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid rgba(255, 230, 241, .35); }
.rx-steps li::before { content: counter(st, decimal-leading-zero); grid-row: 1 / span 3; font-family: var(--disp); font-weight: 200; font-size: 2.8rem; line-height: .85; }
.rx-steps b { font-weight: 600; }
.rx-steps .rx-dim { font-family: var(--mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .08em; }
.rx-steps p { margin-top: .35rem; }

/* ---------- Questions, the call and the form ---------- */
.rx-faq details { border-bottom: 1px solid var(--plum-3); }
.rx-faq details:first-of-type { border-top: 1px solid var(--pink); }
.rx-faq summary { display: flex; gap: 1rem; padding: 1rem 0; cursor: pointer; list-style: none; font-size: 1.05em; }
.rx-faq summary::-webkit-details-marker { display: none; }
.rx-faq summary:hover { color: var(--pink); }
.rx-plus::before { content: "[+]" / ""; color: var(--pink); font-family: var(--mono); }
.rx-faq details[open] .rx-plus::before { content: "[-]" / ""; }
.rx-faq details p { padding: 0 0 1.2rem 3.6ch; color: var(--dim); }
.rx-call { margin-top: clamp(4rem, 8vw, 6rem); }
.rx-call > p { max-width: 56ch; }
.rx-call .rx-pair { margin: 1.6rem 0 1.8rem; }
.rx-form { margin-top: 3rem; padding: clamp(1.1rem, 2.6vw, 2.4rem); border: 1px solid var(--pink); background: #1f1d35; }
.rx-form > .rx-h3 { margin-top: 0; }
.rx-form > .rx-dim { margin: -.4rem 0 1.6rem; }

/* ---------- The seal on its line pattern, and the footer ---------- */
.rx-seal-sec { position: relative; margin-top: var(--sec); height: clamp(420px, 60vw, 760px); display: grid; place-items: center; overflow: hidden; }
.rx-geo { position: absolute; inset: 0; width: 100%; height: 100%; stroke: rgba(255, 143, 196, .18); stroke-width: 1; -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.rx-seal { position: relative; width: clamp(200px, 22vw, 320px); height: auto; transition: transform 1.2s var(--ease); }
.rx-seal:hover { transform: rotate(-12deg); }
.rx-foot { padding: 0 var(--g) clamp(2.5rem, 5vw, 4rem); font-family: var(--mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .1em; }
.rx-foot-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; max-width: var(--wide); margin: 0 auto; }
.rx-foot p + p { margin-top: .5rem; }
.rx-foot i { color: var(--pink); }
.rx-foot a { color: var(--milk); text-decoration: none; }
.rx-foot a:hover { color: var(--pink); }
.rx-foot-r { text-align: right; }
.rx-icons { display: flex; gap: .6rem; }
.rx-ico svg { width: 30px; height: 38px; fill: none; stroke: var(--milk); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rx-ico:hover svg { stroke: var(--pink); }
.rx-colophon { max-width: var(--col); margin: 2.6rem auto 0; padding-top: 1.6rem; border-top: 1px solid var(--plum-3); text-transform: none; letter-spacing: 0; color: var(--dim); line-height: 1.6; text-align: center; }
.rx-colophon .rx-label { margin-bottom: .8rem; }
.rx-colophon p + p { margin-top: .6rem; }
.rx-colophon a { color: var(--pink); text-decoration: underline; }

/* ---------- Motion: titles rise letter by letter, the rest settles in (only once the script ran) ---------- */
.rx-io .rx-giant:not(.rx-h1) .ch { display: inline-block; opacity: 0; transform: translateY(.3em); transition: opacity .6s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i) * 28ms); white-space: pre; }
.rx-io .rx-giant.in .ch { opacity: 1; transform: none; }
.rx-giant .w { display: inline-block; white-space: nowrap; }
.rx-io :is(.rx-row, .rx-card, .rx-stage, .rx-panel, .rx-strip) { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform 1s var(--ease); }
.rx-io :is(.rx-row, .rx-card, .rx-stage, .rx-panel, .rx-strip).in { opacity: 1; transform: none; }
.rx-io .rx-card:nth-child(2) { transition-delay: .1s; } .rx-io .rx-card:nth-child(3) { transition-delay: .2s; }
.rx-h1 { animation: rise 1.1s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(.12em); letter-spacing: .04em; } }

/* the quote form (markup from contact.mjs, behaviour from site.js), in this world */
.form .field { margin: 0 0 1.1rem; min-width: 0; }
.form .field > label, .form .choice legend { display: block; margin-bottom: .35rem; padding: 0; }
.form .opt { margin-left: .3rem; color: var(--dim); font-size: var(--t-sm); }
.form input:not([type="checkbox"]):not([type="radio"]), .form select, .form textarea {
  display: block; width: 100%; min-height: 2.9rem; padding: .55rem .75rem; font: inherit; color: var(--milk); background: var(--plum-2); border: 2px solid var(--edge); border-radius: 0; }
.form textarea { min-height: 7rem; resize: vertical; line-height: 1.5; }
.form select { appearance: none; padding-right: 2.6rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10v2H8v2H6v2H4V4H2V2H0z' fill='%23ff8fc4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; background-size: 12px; }
.form select option, .form select optgroup { background: var(--plum-2); color: var(--milk); }
.form input:hover, .form select:hover, .form textarea:hover { border-color: var(--dim); }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: none; border-color: var(--pink); }
.form [aria-invalid="true"] { border-color: var(--err) !important; }
.field-err { margin: .35rem 0 0; color: var(--err); font-size: var(--t-sm); }
.field-err::before { content: "! " / ""; }
.hint { margin: .35rem 0 0; color: var(--dim); font-size: var(--t-sm); }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
fieldset.choice { margin: 0 0 1.2rem; padding: 0; border: 0; min-width: 0; }
.q-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.q-tile, .check { position: relative; }
.q-tile input, .check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.q-tile span { display: flex; align-items: center; gap: .6rem; min-height: 2.9rem; height: 100%; padding: .45rem .8rem; border: 2px solid var(--edge); line-height: 1.3; cursor: pointer; }
.q-tile span:hover, .check span:hover { border-color: var(--dim); }
.q-tile input:checked + span { background: var(--pink); border-color: var(--pink); color: var(--plum); }
.q-tile input:focus-visible + span, .check input:focus-visible + span { outline: 2px dashed var(--milk); outline-offset: 3px; }
/* the form's topic marks in this world's two inks: a pink square outline, filled when chosen */
.dot { flex: none; display: inline-block; width: .7rem; height: .7rem; box-shadow: inset 0 0 0 2px var(--pink); }
.q-tile input:checked + span .dot { background: var(--plum); box-shadow: none; }
.q-division[aria-invalid="true"] .q-tile span, .choice[aria-invalid="true"] .check span { border-color: var(--err); }
.q-for, .q-hint { display: none; }
.quote-form:has(input[name="division"][value="website"]:checked) [data-for="website"],
.quote-form:has(input[name="division"][value="software"]:checked) [data-for="software"],
.quote-form:has(input[name="division"][value="game"]:checked) [data-for="game"],
.quote-form:has(input[name="division"][value="ai"]:checked) [data-for="ai"],
.quote-form:has(input[name="division"][value="unsure"]:checked) [data-for="unsure"],
.quote-form:not(:has(input[name="division"]:checked)) .q-hint[data-for="unsure"] { display: block; }
.checks { display: flex; flex-wrap: wrap; gap: .4rem; }
.check span { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.5rem; padding: .3rem .8rem; border: 2px solid var(--edge); color: var(--milk); cursor: pointer; }
.check .tick { display: none; width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 3; }
.check input:checked + span { background: var(--pink); border-color: var(--pink); color: var(--plum); }
.check input:checked + span .tick { display: block; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.6rem; }
.form-end .pill { display: inline-flex; align-items: center; padding: .55em 1.05em; border: 2px solid var(--pink); border-radius: 0; background: var(--pink); color: var(--plum); font: inherit; cursor: pointer; }
.form-end .pill:hover { background: var(--plum); color: var(--pink); }
.form-end .pill[disabled] { opacity: .6; cursor: progress; }
.fine { margin: 0; flex: 1 1 14rem; color: var(--dim); font-size: var(--t-sm); }
.form-status { margin: 1rem 0 0; padding: .7rem .9rem; border: 2px solid var(--err); color: var(--err); }
.form-status a { color: inherit; }
.form-done p { margin-top: .6rem; }
.form-done strong { font-weight: 400; color: var(--pink); }
.form-done:focus { outline: none; }

.form-end .pill { font-family: var(--mono); font-size: var(--t-sm); text-transform: uppercase; letter-spacing: .1em; border-width: 1px; }
.form .field > label, .form .choice legend { font-family: var(--mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }

/* ---------- Narrower screens ---------- */
@media (max-width: 900px) {
  .rx-row, .rx-services > li { grid-template-columns: 1fr; }
  .rx-row-flip .rx-row-t { order: 0; }
  .rx-cards { grid-template-columns: 1fr; max-width: 520px; }
  .rx-runs thead { display: none; }
  .rx-runs tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .3rem 1rem; padding: .9rem 0; border-bottom: 1px solid var(--plum-3); }
  .rx-runs tbody td, .rx-runs tbody th { padding: 0; border: 0; }
  .rx-runs .rx-date { grid-column: 1; grid-row: 1; }
  .rx-runs .rx-res { grid-column: 2; grid-row: 1; }
  .rx-runs tbody td:nth-child(5) { grid-column: 3; grid-row: 1; color: var(--dim); }
  .rx-runs tbody th { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
  .rx-runs tbody td:nth-child(3) { grid-column: 1 / -1; grid-row: 3; color: var(--dim); }
  .rx-runs .rx-bar { grid-column: 1 / -1; grid-row: 4; width: auto; }
  .rx-runs .rx-note { grid-column: 1 / -1; grid-row: 5; min-width: 0; }
  .rx-foot-row { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .rx-foot-r { text-align: center; }
}
@media (max-width: 640px) {
  .rx-nav { grid-template-columns: 1fr auto 1fr; row-gap: .2rem; letter-spacing: .1em; }
  .rx-nav a:nth-child(1) { grid-area: 1 / 1; justify-self: end; } .rx-nav a:nth-child(2) { grid-area: 2 / 1; justify-self: end; }
  .rx-nav .rx-mark { grid-area: 1 / 2 / 3 / 3; } .rx-nav a:nth-child(4) { grid-area: 1 / 3; justify-self: start; } .rx-nav a:nth-child(5) { grid-area: 2 / 3; justify-self: start; }
  .rx-k-hint, .rx-k-txt i { display: none; }
  .rx-util { flex-wrap: wrap; }
  .rx-spec > div, .rx-defs > div { grid-template-columns: 1fr; }
  .rx-modes { grid-template-columns: 1fr; }
  .row-2, .q-tiles { grid-template-columns: 1fr; }
  .rx-compare thead { display: none; }
  .rx-compare tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem 1rem; padding: .7rem 0; border-bottom: 1px solid var(--plum-3); }
  .rx-compare tbody td, .rx-compare tbody th { padding: 0; border: 0; }
  .rx-compare tbody th { grid-column: 1; grid-row: 1; }
  .rx-compare tbody td:nth-child(3) { grid-column: 2; grid-row: 1; }
  .rx-compare tbody td:nth-child(2) { display: none; }
  .rx-compare .rx-bar { grid-column: 1 / -1; grid-row: 2; width: auto; }
  .rx-index thead { display: none; }
  .rx-index tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1rem; padding: .7rem 0; border-bottom: 1px solid var(--plum-3); }
  .rx-index tbody td { padding: 0; border: 0; }
  .rx-index td:first-child a { white-space: normal; overflow-wrap: anywhere; }
  .rx-index td:nth-child(3) { grid-column: 1 / -1; color: var(--dim); }
}
@media (prefers-reduced-motion: reduce) {
  .rx-h1, .rx-dither:hover img { animation: none; }
  .rx-seal:hover, .rx-mark:hover img { transform: none; }
}
/* on phones the dithers would be scaled below their own pixels: the strip keeps its pixels and crops,
   the smaller images smooth instead of shimmering into moiré */
@media (max-width: 900px) {
  .rx-strip { height: min(56vw, 351px); }
  .rx-strip img { width: auto; height: 100%; max-width: none; margin-left: 50%; transform: translateX(-50%); }
  .rx-io .rx-strip.in img, .rx-io .rx-strip img { transform: translateX(-50%); }
  .rx-row .rx-dither img { image-rendering: auto; }
}
@media (max-width: 640px) {
  .rx-head { padding-top: 1.6rem; }
  .rx-frame::before, .rx-frame::after, .rx-corner::before, .rx-corner::after { width: 12px; height: 12px; }
}

@media (min-width: 1800px) { .rx-h1 { font-size: min(23vw, 40rem); } }
