/* ezulabs' house theme, on every page (the root, /mxf-studio and its documents, /mxf-sdk, /probe): a workbench.
   Each page opens on a green cutting mat, with rulers on its edges and the product lying on it, labelled with tape.
   Below the mat: plain paper, dashed rules, rubber-stamp statuses, a ruled ledger. Dark gray ink, sugar green, and
   the pixel art's yellow and red. Pixel type for headings, labels, buttons and the logo; Atkinson for reading. */

@font-face { font-family: "Pixelify Sans"; src: url("fonts/pixelify.woff2") format("woff2");
  font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-400.woff2") format("woff2");
  font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-400i.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-700.woff2") format("woff2");
  font-weight: 700; font-display: swap; }

:root {
  --paper: #f3f1e9;
  --paper-2: #fbfaf5;
  --hair: rgb(43 45 47 / .14);
  --dash: rgb(43 45 47 / .25);
  --ink: #2b2d2f;
  --ink-soft: #52565b;
  --green: #a3e4ad;           /* sugar green: the logo tile, "stable" */
  --green-deep: #2b8150;      /* green text and lines on paper */
  --yellow: #ffd15c;          /* the art's yellow: tape, highlights, bullets */
  --red: #e5533d;             /* the art's red: arrows, stamps, markers */
  --on-green: #1f2a22;        /* text on green, yellow or tape, in both schemes */
  --mat: #98d6a3;             /* the cutting mat */
  --mat-ink: #1f2a22;         /* text on the mat */
  --mat-line: rgb(31 52 38 / .14);
  --mat-major: rgb(31 52 38 / .28);
  --mat-shadow: rgb(31 52 38 / .3);
  --shadow: rgb(43 45 47 / .18);
  --code-bg: #25282a;
  --ledger-line: rgb(70 130 180 / .22);
  --pixel: "Pixelify Sans", ui-monospace, monospace;
  --text: "Atkinson Hyperlegible", ui-sans-serif, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --measure: 68ch;
  --step: clamp(1rem, .96rem + .2vw, 1.1rem);
  --gap: clamp(3rem, 6vw, 4.5rem);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1d1f21;
    --paper-2: #25282a;
    --hair: rgb(235 234 227 / .14);
    --dash: rgb(235 234 227 / .22);
    --ink: #ebeae3;
    --ink-soft: #b9bcb6;
    --green: #8fd99a;
    --green-deep: #a3e4ad;
    --red: #ff7a66;
    --mat: #23382a;
    --mat-ink: #e9f6ea;
    --mat-line: rgb(163 228 173 / .09);
    --mat-major: rgb(163 228 173 / .2);
    --mat-shadow: rgb(0 0 0 / .4);
    --shadow: rgb(0 0 0 / .45);
    --code-bg: #141516;
    --ledger-line: rgb(140 180 220 / .14);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 400 var(--step)/1.6 var(--text); color: var(--ink); background: var(--paper); text-rendering: optimizeLegibility; }

/* Pixelify's fi/fl ligatures have no glyphs ("first" would read "Arst") */
* { font-variant-ligatures: none !important; }

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .2em; text-decoration-color: var(--red); }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px dashed var(--ink); outline-offset: 4px; border-radius: 4px; }
img, svg { display: block; max-width: 100%; }
code { font: 500 .88em var(--mono); background: color-mix(in srgb, var(--ink) 7%, transparent); padding: .1em .3em; }

.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--on-green); padding: .5rem 1rem; z-index: 200; }
.skip:focus { left: 1rem; top: 1rem; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

/* ---- the top bar: paper, no frame ---- */
.bar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; width: auto;
  margin-inline: clamp(.5rem, 2vw, 1.5rem); padding-inline: clamp(.75rem, 2vw, 1.5rem); }   /* lined up with the mat */
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font: 600 1.35rem/1 var(--pixel); }
.brand .logo { width: 2rem; height: auto; }
.brand .logo.ezu { width: auto; height: 1.75rem; }   /* the two tiles: e and z */
.brand small { font: 400 .8rem/1 var(--text); color: var(--ink-soft); }
.nav { display: flex; gap: clamp(.9rem, 2.2vw, 1.6rem); font: 700 .95rem/1 var(--text); }
.nav a { text-decoration: none; padding: .4rem 0; }
.nav a:hover, .nav a[aria-current] { text-decoration: underline 2px var(--red); text-underline-offset: 6px; }
@media (max-width: 640px) { .nav .wide, .brand small { display: none; } }

/* ---- type ---- */
h1, h2 { font-family: var(--pixel); font-weight: 700; line-height: 1.04; letter-spacing: -.005em; margin: 0; text-wrap: balance; }
h3 { font: 700 1.2rem/1.25 var(--text); margin: 0; }
h1 { font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.08rem, 1rem + .4vw, 1.22rem); max-width: 34rem; }
.mark { background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%); padding-inline: .08em; }
@media (prefers-color-scheme: dark) { .mark { background: none; color: var(--yellow); } }

/* ---- buttons: ink on the mat, a hard shadow ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .85rem 1.25rem;
  font: 600 1.05rem/1 var(--pixel); color: var(--paper); background: var(--ink); border: 2px solid var(--ink); border-radius: 4px;
  box-shadow: 4px 5px 0 var(--mat-shadow); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translate(-1px, -3px); box-shadow: 6px 9px 0 var(--mat-shadow); }
.btn:active { transform: translate(3px, 4px); box-shadow: 0 0 0 var(--mat-shadow); }
.btn.ghost { background: var(--paper-2); color: var(--ink); }
@media (prefers-color-scheme: dark) { .btn { color: #1d1f21; } .btn.ghost { color: var(--ink); border-color: var(--hair); } }
.btn .badge { font: 700 .7rem/1 var(--text); text-transform: uppercase; letter-spacing: .08em; background: var(--yellow);
  color: var(--on-green); padding: .3rem .45rem; border-radius: 2px; }
@media (max-width: 640px) { .cta .btn { flex: 1 1 100%; } }

/* ---- the mat: every page's opening ---- */
.mat {
  position: relative; margin: 0 clamp(.5rem, 2vw, 1.5rem); border-radius: 18px; overflow: hidden; color: var(--mat-ink);
  background-color: var(--mat);
  background-image:
    linear-gradient(to top right, transparent calc(50% - 1px), var(--mat-line) 50%, transparent calc(50% + 1px)),
    linear-gradient(var(--mat-major) 1px, transparent 1px), linear-gradient(90deg, var(--mat-major) 1px, transparent 1px),
    linear-gradient(var(--mat-line) 1px, transparent 1px), linear-gradient(90deg, var(--mat-line) 1px, transparent 1px);
  background-size: 100% 100%, 100px 100px, 100px 100px, 20px 20px, 20px 20px;
  background-position: 0 0, 40px 40px, 40px 40px, 40px 40px, 40px 40px;
  box-shadow: inset 0 0 0 3px var(--mat-line);
  padding: clamp(3.5rem, 6vw, 5rem) clamp(1.25rem, 3vw, 3rem) clamp(2.5rem, 5vw, 4rem) clamp(2.75rem, 4vw, 4rem);
}
.mat > .wrap { width: min(1120px, 100%); }
.mat .lede, .mat .fine { color: var(--mat-ink); }
.ruler { position: absolute; display: flex; font: 500 .7rem/1 var(--pixel); color: var(--mat-major); pointer-events: none; overflow: hidden; }
.ruler.x { top: 0; left: 40px; right: 0; height: 32px; padding-top: 7px;
  background: repeating-linear-gradient(90deg, var(--mat-major) 0 2px, transparent 2px 100px) bottom / 100% 12px no-repeat,
              repeating-linear-gradient(90deg, var(--mat-line) 0 1px, transparent 1px 20px) bottom / 100% 6px no-repeat; }
.ruler.x span { flex: 0 0 100px; padding-left: 5px; }
.ruler.y { left: 0; top: 40px; bottom: 0; width: 32px; flex-direction: column; padding-left: 7px;
  background: repeating-linear-gradient(var(--mat-major) 0 2px, transparent 2px 100px) right / 12px 100% no-repeat,
              repeating-linear-gradient(var(--mat-line) 0 1px, transparent 1px 20px) right / 6px 100% no-repeat; }
.ruler.y span { flex: 0 0 100px; padding-top: 4px; }
@media (prefers-color-scheme: dark) { .ruler { color: rgb(163 228 173 / .4); } }

/* the product pages' opening: words on the left, the product lying on the mat on the right */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 5vw, 4rem); }
.hero h1 { margin: 0 0 1.25rem; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.75rem; }
.hero .fine { font-size: .92rem; margin: 1.25rem 0 0; opacity: .85; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

/* things lying on the mat (or on paper): a hard shadow cast on the surface, lifted on hover */
.desk { position: relative; justify-self: center; width: min(540px, 100%); }
.desk .px-art, .desk .handheld { width: 100%; height: auto; filter: drop-shadow(7px 9px 0 var(--mat-shadow)); }
.desk .tilt { transform: rotate(-3deg); }
.desk .tilt.r { transform: rotate(3deg); }
.desk .handheld { width: min(270px, 62%); margin-inline: auto; transform: rotate(5deg); }
.desk .px-art.photo { width: min(250px, 60%); margin-inline: auto; }
@media (max-width: 860px) { .desk { width: min(440px, 100%); } }

/* tape: a label stuck on the mat, torn at both ends */
.tape { display: inline-block; padding: .35rem 1rem .4rem; font: 600 1.1rem/1.2 var(--pixel); color: var(--on-green);
  background: rgb(255 209 92 / .94); transform: rotate(-3deg);
  clip-path: polygon(0 12%, 3% 0, 97% 4%, 100% 18%, 98% 38%, 100% 58%, 97% 80%, 100% 100%, 3% 96%, 0 82%, 2% 62%, 0 42%, 3% 24%); }
.tape.white { background: rgb(255 255 255 / .88); transform: rotate(2deg); }
.tape.pink { background: rgb(255 140 120 / .92); transform: rotate(-1.5deg); }
.scrawl { font: 500 .95rem/1.3 var(--pixel); color: var(--mat-ink); }
.scrawl::after { content: " →"; color: var(--red); }

/* the prompt, taped under the drawing it made */
.note { display: block; width: fit-content; max-width: 26rem; margin: 2rem 0 0 auto; padding: .7rem 1.1rem .8rem;
  font: 500 1rem/1.35 var(--pixel); color: var(--on-green); background: rgb(255 255 255 / .9); transform: rotate(-2deg);
  clip-path: polygon(0 4%, 2% 0, 98% 2%, 100% 8%, 99% 50%, 100% 92%, 98% 100%, 2% 98%, 0 92%, 1% 50%); }
.note.say::before { content: "“"; color: var(--red); font-size: 1.5em; line-height: 0; vertical-align: -.3em; margin-right: .15em; }

/* callouts: tape labels on leader lines, pointing at parts of a drawing */
.stage { position: relative; margin-block: 3.6rem 3.4rem; }
.co { position: absolute; width: 0; height: 0; }
.co::before { content: ""; position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; background: var(--red); }
.co::after { content: ""; position: absolute; left: -1px; width: 2px; height: 40px; background: var(--mat-ink); opacity: .7; }
.co.up::after { bottom: 0; } .co.down::after { top: 0; }
.co i { position: absolute; left: 0; translate: -50% 0; white-space: nowrap; font: 600 .82rem/1 var(--pixel); font-style: normal;
  color: var(--on-green); background: rgb(255 255 255 / .9); padding: .3rem .55rem;
  clip-path: polygon(0 10%, 4% 0, 96% 6%, 100% 30%, 97% 60%, 100% 90%, 95% 100%, 4% 94%, 1% 60%, 3% 30%); }
.co.up i { bottom: 40px; } .co.down i { top: 40px; }
.co.y i { background: rgb(255 209 92 / .94); }
@media (max-width: 520px) { .co i { font-size: .7rem; } }

/* staggered arrival */
.rise { opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.2, .7, .2, 1) forwards; }
.rise:nth-child(2) { animation-delay: .08s; } .rise:nth-child(3) { animation-delay: .16s; }
.rise:nth-child(4) { animation-delay: .24s; } .rise:nth-child(5) { animation-delay: .32s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---- sections: plain paper, a dashed rule between them ---- */
.section, .support { padding-block: 0 var(--gap); }
.section > .wrap, .support > .wrap { border-top: 2px dashed var(--dash); padding-top: var(--gap); }
.mat + .section > .wrap, .mat + .support > .wrap { border-top: 0; }
.section > .wrap > header, .section .split > header { max-width: 40rem; margin-bottom: clamp(1.5rem, 4vw, 2.25rem); }
.section header p { color: var(--ink-soft); margin: .9rem 0 0; }
.section h2 + p { margin-top: 1rem; }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split.center { align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.fine { font-size: .92rem; color: var(--ink-soft); }

/* features: an icon, a title, a few lines; two columns */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.75rem, 4vw, 2.75rem) clamp(2rem, 5vw, 4rem); }
.feature { min-width: 0; }
.feature .head { display: flex; align-items: center; gap: .75rem; margin-bottom: .7rem; }
.feature .px-icon { width: 2.25rem; height: auto; flex: none; }
.feature h3 { font: 700 1.3rem/1.2 var(--pixel); }
.feature p { color: var(--ink-soft); margin: 0 0 .5rem; }
.feature .codecard { margin-top: 1rem; }
@media (max-width: 760px) { .features { grid-template-columns: minmax(0, 1fr); } }

/* bullets: yellow squares, red on every other list */
.ticks { margin: 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 1.4rem; margin-bottom: .45rem; color: var(--ink-soft); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: .5rem; height: .5rem; background: var(--yellow); outline: 2px solid var(--ink); }
.feature:nth-child(even) .ticks li::before { background: var(--red); }

/* numbered steps, on yellow tape */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-left: 3rem; margin-bottom: 1.25rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -.1em; width: 2.1rem; height: 1.8rem; display: grid;
  place-items: center; font: 700 1.05rem/1 var(--pixel); background: var(--yellow); color: var(--on-green); transform: rotate(-4deg);
  clip-path: polygon(0 12%, 6% 0, 94% 6%, 100% 25%, 96% 50%, 100% 80%, 94% 100%, 6% 94%, 0 76%, 4% 50%); }
.steps li:nth-child(even)::before { transform: rotate(3deg); }
.steps b { display: block; color: var(--ink); }
.steps span { color: var(--ink-soft); }

/* ---- the code card ---- */
.codecard { background: var(--code-bg); color: #ebeae3; border-radius: 6px; box-shadow: 5px 6px 0 var(--shadow); }
.codecard .tab { display: flex; justify-content: space-between; font: 700 .8rem/1 var(--text); padding: .65rem .9rem;
  border-bottom: 1px solid rgb(255 255 255 / .1); color: var(--yellow); }
.codecard .tab span:last-child { color: #8f9a92; }
.codecard pre { margin: 0; padding: 1rem 1.1rem 1.1rem; overflow-x: auto; font: 500 .88rem/1.6 var(--mono); }
.codecard .c { color: #8f9a92; } .codecard .k { color: #ff9a85; } .codecard .n { color: var(--yellow); }

/* ---- questions: a plain list with dashed rules ---- */
.faq { border-top: 2px dashed var(--dash); }
.faq details { border-bottom: 2px dashed var(--dash); }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 2.5rem 1rem 0; font: 700 1.05rem/1.35 var(--text); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; translate: 0 -50%; font: 700 1.4rem/1 var(--pixel); color: var(--green-deep); }
.faq details[open] summary::after { content: "−"; color: var(--red); }
.faq details > div { padding: 0 0 1.1rem; color: var(--ink-soft); }
.faq details > div p:last-child { margin-bottom: 0; }
.mail { font-weight: 700; color: var(--ink); }
.support .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.support aside h2 { margin-bottom: 1rem; }
.support aside p { color: var(--ink-soft); }
@media (max-width: 860px) { .support .wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---- footer ---- */
.foot { padding-block: 0 2.75rem; font-size: .9rem; color: var(--ink-soft); }
.foot .wrap { display: grid; gap: 1rem; border-top: 2px dashed var(--dash); padding-top: 2rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 1.5rem; font: 700 .95rem/1 var(--text); color: var(--ink); }
.foot nav a { text-decoration: none; } .foot nav a:hover { text-decoration: underline 2px var(--red); }
/* YouTube and Instagram: their official glyphs (Simple Icons, CC0) in one colour, as both brands allow */
.foot .social { gap: .5rem; margin-left: -.375rem; }
.foot .social a { display: inline-flex; padding: .375rem; color: var(--ink-soft); }
.foot .social a:hover, .foot .social a:focus-visible { color: var(--ink); }
.foot .social svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }
.foot p { margin: 0; }
.foot .tm { font-size: .8rem; max-width: 90ch; }

/* ---- documents: the privacy policy, the source offer - a ruled notebook page with its margin line ---- */
.doc { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3.5rem, 8vw, 5.5rem); }
.doc .page { position: relative; max-width: calc(var(--measure) + 6rem); margin-inline: auto; background: var(--paper-2);
  box-shadow: 0 1px 0 var(--hair), 6px 8px 0 var(--shadow); border-radius: 3px;
  padding: clamp(1.75rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 3.5rem) clamp(2rem, 5vw, 3.5rem) clamp(1.75rem, 7vw, 5.5rem); }
.doc .page::before { content: ""; position: absolute; top: 0; bottom: 0; left: clamp(.9rem, 4vw, 3.6rem); width: 2px; background: var(--red); opacity: .45; }
.doc h1 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3.1rem); margin-block: .8rem .6rem; }
.doc .meta { font: 400 .95rem/1.4 var(--text); color: var(--ink-soft); margin-bottom: 2rem; }
.doc h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem); margin-block: 2.4rem .9rem; display: flex; gap: .7rem; align-items: baseline; }
.doc h2::before { content: ""; flex: none; width: .6rem; height: .6rem; background: var(--yellow); outline: 2px solid var(--ink); translate: 0 -.1em; }
.doc ul, .doc ol { padding-left: 1.3rem; } .doc li { margin-bottom: .45rem; } .doc li::marker { color: var(--red); }
.doc .tldr { background: color-mix(in srgb, var(--yellow) 20%, var(--paper-2)); border-left: 4px solid var(--yellow); padding: 1.1rem 1.3rem; margin-block: 1.5rem 0; }
@media (prefers-color-scheme: dark) { .doc .tldr { background: color-mix(in srgb, var(--yellow) 10%, var(--paper-2)); } }
.doc .tldr strong:first-child { font: 700 1.05rem/1 var(--pixel); display: block; margin-bottom: .45rem; }
.doc .tldr p:last-child { margin: 0; }
.doc kbd { font: 500 .88em var(--pixel); border: 2px solid var(--ink); border-bottom-width: 3px; padding: 0 .35em; background: var(--paper); }
.doc .draft { border: 2px dashed var(--red); padding: .9rem 1.1rem; margin-bottom: 1.5rem; font-size: .95rem; }
.doc .draft strong { color: var(--red); }
.back { display: inline-flex; gap: .4rem; font: 700 1rem/1 var(--text); text-decoration: none; }
.back::before { content: "◀"; color: var(--red); }
.back-row { margin-top: 2.5rem; }

/* ---- tables: a ruled ledger with a red margin; statuses as small stamps ---- */
.table { overflow-x: auto; background: var(--paper-2); border-left: 2px solid rgb(229 83 61 / .5); box-shadow: 0 1px 0 var(--hair), 5px 6px 0 var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .65rem .9rem; border-bottom: 1px solid var(--ledger-line); }
th { font: 600 .85rem/1.2 var(--pixel); letter-spacing: .04em; color: var(--ink-soft); border-bottom: 2px solid var(--ink); }
tr:last-child td { border-bottom: 0; }
.status { display: inline-block; font: 700 .72rem/1 var(--pixel); text-transform: uppercase; letter-spacing: .08em; padding: .28rem .45rem;
  border: 2px solid currentColor; border-radius: 4px; white-space: nowrap; color: var(--ink-soft); }
.status.ok { color: var(--green-deep); }
.status.soon { color: var(--red); border-style: dashed; }

/* a spec list: name on the left, value on the right */
.specs { margin: 1.25rem 0 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.specs li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--hair); margin: 0; }
.specs b { font-weight: 700; }
.specs span { color: var(--ink-soft); text-align: right; }

/* ---- the root: products lying on the mat ---- */
.bench { display: grid; gap: 1rem 2rem; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, .95fr);
  grid-template-areas: "intro intro studio" "sdk probe studio"; min-height: min(72vh, 680px); }
.bench .intro { grid-area: intro; max-width: 36rem; align-self: start; }
.bench .intro .lede { margin-top: 1.1rem; }
.thing { position: relative; display: flex; flex-direction: column; align-items: center; gap: .45rem; text-decoration: none; color: var(--mat-ink); }
.thing .obj { display: block; width: 100%; transform: rotate(var(--r)); filter: drop-shadow(7px 9px 0 var(--mat-shadow));
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), filter .25s; }
.thing .obj svg { width: 100%; height: auto; }
.thing:hover .obj, .thing:focus-visible .obj { transform: translate(-3px, -8px) rotate(var(--r2)); filter: drop-shadow(14px 18px 0 var(--mat-shadow)); }
.thing .tape { margin-top: .8rem; }
.thing.studio { grid-area: studio; align-self: center; --r: 2deg; --r2: 0deg; }
.thing.studio .obj { width: min(380px, 100%); }
.thing .obj:has(.deck) { filter: none; }                  /* the deck's cards and phone cast their own shadows */
.thing .deck { display: block; width: 100%; }
.thing:hover .dcard, .thing:focus-visible .dcard { transform: rotate(calc(var(--a) * 1.2)) translateY(-3%); }
.thing.sdk { grid-area: sdk; align-self: end; --r: -4deg; --r2: -1deg; }
.thing.probe { grid-area: probe; align-self: end; --r: 3deg; --r2: 6deg; }
.thing.probe .obj { width: 92%; }
@media (max-width: 860px) {
  .bench { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "intro intro" "studio studio" "sdk probe"; gap: 2rem 1rem; min-height: 0; }
  .thing.studio .obj { width: min(320px, 86%); }
}

/* the root's list of products: one line each, with a rubber-stamp status */
.log { list-style: none; padding: 0; margin: 0; }
.log li { display: grid; grid-template-columns: 15rem minmax(0, 1fr) 10rem; gap: 2rem; align-items: center; padding: 1.5rem 0;
  border-top: 2px dashed var(--dash); }
.log li > a { font: 700 1.6rem/1.1 var(--pixel); text-decoration: none; }
.log li > a::after { content: " ▸"; color: var(--red); }
.log li > a:hover { text-decoration: underline 3px var(--yellow); text-underline-offset: 6px; }
.log p { color: var(--ink-soft); margin: 0; max-width: 40rem; }
.stamp { justify-self: end; font: 700 .9rem/1 var(--pixel); text-transform: uppercase; letter-spacing: .1em; color: var(--red);
  border: 3px solid currentColor; border-radius: 6px; padding: .4rem .7rem; transform: rotate(-7deg); opacity: .88; white-space: nowrap; }
.stamp.green { color: var(--green-deep); transform: rotate(4deg); }
.stamp.gray { color: var(--ink-soft); transform: rotate(-3deg); }
@media (max-width: 860px) { .log li { grid-template-columns: minmax(0, 1fr); gap: .6rem; } .stamp { justify-self: start; } }

/* a ruled ledger: name, then what */
.ledger { display: grid; grid-template-columns: 13.5rem minmax(0, 1fr); margin: 0; padding: .3rem 0 .3rem 1rem; background: var(--paper-2);
  border-left: 2px solid rgb(229 83 61 / .5); box-shadow: 0 1px 0 var(--hair), 5px 6px 0 var(--shadow); }
.ledger dt, .ledger dd { margin: 0; padding: .6rem .8rem .6rem 0; line-height: 1.5; border-bottom: 1px solid var(--ledger-line); }
.ledger dt:last-of-type, .ledger dd:last-of-type { border-bottom: 0; }
.ledger > div { display: contents; }
.ledger dt { font-weight: 700; }
.ledger dd { color: var(--ink-soft); font-size: .97rem; }
@media (max-width: 640px) { .ledger { grid-template-columns: minmax(0, 1fr); } .ledger dt { border-bottom: 0; padding-bottom: 0; } }

/* ---- pixel art that moves ---- */
.led { animation: led 1.2s steps(1) infinite; }
@keyframes led { 50% { opacity: .15; } }
.wave { animation: wave 1.8s infinite; opacity: .2; }
.wave.w2 { animation-delay: .25s; } .wave.w3 { animation-delay: .5s; }
@keyframes wave { 30% { opacity: 1; } 80%, 100% { opacity: .2; } }

/* the house handheld's game plays: the hero jumps for the coin, the coin spins until it's caught, the slime patrols.
   Pixel-stepped on purpose: whole pixels only, like the screen. */
.px-hero { animation: hero 2.4s infinite; }
@keyframes hero {
  0%, 30% { transform: translateY(0); }
  34% { transform: translateY(-4px); } 38% { transform: translateY(-7px); } 42% { transform: translateY(-9px); }
  46% { transform: translateY(-10px); } 50% { transform: translateY(-9px); } 54% { transform: translateY(-7px); }
  58% { transform: translateY(-4px); } 62%, 100% { transform: translateY(0); }
}
.px-hero, .px-slime { animation-timing-function: steps(1, end); }
.px-coin { transform-box: fill-box; transform-origin: center; animation: spin .9s steps(1, end) infinite, caught 2.4s steps(1, end) infinite; }
@keyframes spin { 0% { transform: scaleX(1); } 25% { transform: scaleX(.5); } 50% { transform: scaleX(.25); } 75% { transform: scaleX(.5); } }
@keyframes caught { 0%, 45% { opacity: 1; } 46%, 92% { opacity: 0; } 93%, 100% { opacity: 1; } }
.px-slime { animation: patrol 3.2s infinite alternate; }
@keyframes patrol {
  0% { transform: translateX(0); } 17% { transform: translateX(1px); } 33% { transform: translateX(2px); }
  50% { transform: translateX(3px); } 67% { transform: translateX(4px); } 83% { transform: translateX(5px); }
  100% { transform: translateX(6px); }
}
.px-heart { animation: beat 1.6s steps(1, end) infinite; }
.px-heart.h2 { animation-delay: .2s; } .px-heart.h3 { animation-delay: .4s; }
@keyframes beat { 0%, 70% { opacity: 1; } 75%, 85% { opacity: .55; } }

@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; animation: none; }
  .thing .obj, .btn { transition: none; }
  .led, .wave, .px-hero, .px-coin, .px-slime, .px-heart { animation: none; }
  .wave { opacity: .8; }
}

/* the small label above a document's title */
.kicker { display: inline-block; font: 600 .95rem/1 var(--pixel); letter-spacing: .04em; color: var(--red); }

/* where each drawing's callouts point, as a share of the drawing */
.enclave-co .c1 { left: 21%; top: 14%; } .enclave-co .c2 { left: 21%; top: 93%; }
.enclave-co .c3 { left: 53%; top: 30%; } .enclave-co .c4 { left: 80%; top: 74%; }
.board-co .c1 { left: 52%; top: 32%; } .board-co .c2 { left: 88%; top: 42%; }
.probe-co .c1 { left: 18%; top: 34%; } .probe-co .c2 { left: 55%; top: 24%; } .probe-co .c3 { left: 78%; top: 86%; }

/* ---- the sign-up form: an email, one checkbox, one button; posts to the waitlist service, no script ---- */
.signup { margin-top: 1.75rem; max-width: 31rem; }
.signup .ask { display: block; font: 600 1rem/1 var(--pixel); margin-bottom: .55rem; }
.signup .row { display: flex; gap: .7rem; }
.signup input[type="email"] { flex: 1; min-width: 0; font: 400 1.05rem/1.2 var(--text); color: var(--ink); padding: .8rem .9rem;
  background: var(--paper-2); border: 2px solid var(--ink); border-radius: 4px; box-shadow: inset 2px 2px 0 rgb(0 0 0 / .06); }
.signup input[type="email"]::placeholder { color: var(--ink-soft); opacity: .7; }
.signup input[type="email"]:focus-visible { outline: 3px dashed var(--ink); outline-offset: 3px; }
.signup .check { display: flex; gap: .6rem; align-items: flex-start; margin-top: .85rem; font-size: .95rem; line-height: 1.4; cursor: pointer; }
.signup .check input { flex: none; width: 1.15rem; height: 1.15rem; margin: .12rem 0 0; accent-color: var(--ink); }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; margin: 0; }
@media (max-width: 520px) { .signup .row { flex-direction: column; } }

/* ---- MXF Studio's opening: the phone in front, the devices you can build fanned behind it like a hand of cards ---- */
.deck { position: relative; justify-self: center; width: min(500px, 100%); aspect-ratio: 1 / 1.02; }
.dcard { position: absolute; left: 32%; bottom: 31%; width: 36%; aspect-ratio: 5 / 7; container-type: inline-size;
  display: flex; justify-content: center; align-items: flex-start; border: 2px solid var(--on-green); border-radius: 10px;
  background: #fbfaf5; box-shadow: 4px 5px 0 var(--mat-shadow); transform-origin: 50% 165%; transform: rotate(var(--a));
  transition: transform .35s cubic-bezier(.2, .7, .2, 1); animation: deal .8s cubic-bezier(.2, .7, .2, 1) backwards var(--d); }
@keyframes deal { from { transform: rotate(0deg) translateY(10%); } }
.dcard svg { width: 82cqw; height: auto; margin-top: 11cqw; }       /* sized by the card (cqw), not by the deck */
.dcard.d1 { --a: -28deg; --d: .15s; background: #ffe1dc; z-index: 1; }
.dcard.d2 { --a: -8deg; --d: .25s; background: #fff3cf; z-index: 4; }
.dcard.d3 { --a: 9deg; --d: .35s; background: #e3f4e6; z-index: 3; }
.dcard.d4 { --a: 28deg; --d: .45s; z-index: 2; }
.dcard.d1 { justify-content: flex-start; }
.dcard.d1 svg { width: 80cqw; margin: 16cqw 0 0 6cqw; }
.dcard.d2 svg { width: 70cqw; margin-top: 9cqw; }
.dcard.d3 { justify-content: flex-end; }
.dcard.d3 svg { width: 62cqw; margin: 10cqw 5cqw 0 0; }
.dcard.d4 { justify-content: flex-end; }
.dcard.d4 svg { width: 32cqw; margin: 8cqw 9cqw 0 0; }
.deck:hover .dcard { transform: rotate(calc(var(--a) * 1.2)) translateY(-3%); }
.deck .phone { position: absolute; left: 50%; bottom: 0; width: 35%; z-index: 10; transform: translateX(-50%) rotate(-4deg);
  filter: drop-shadow(7px 9px 0 var(--mat-shadow)); }
.deck .phone svg { width: 100%; height: auto; }
@media (max-width: 860px) { .deck { width: min(400px, 100%); } }
@media (prefers-reduced-motion: reduce) { .dcard { animation: none; transition: none; } }

/* a piece of the mat, under a drawing that sits on paper */
.matbox { border-radius: 14px; padding: .5rem clamp(1rem, 3vw, 2rem) 1.5rem; color: var(--mat-ink); background-color: var(--mat);
  background-image: linear-gradient(var(--mat-line) 1px, transparent 1px), linear-gradient(90deg, var(--mat-line) 1px, transparent 1px);
  background-size: 20px 20px; box-shadow: inset 0 0 0 3px var(--mat-line); }
.matbox .note { margin-top: 0; }

/* a small rubber stamp beside a name in the ledger: "2 US patents" */
.ledger .patent { display: inline-block; margin-left: .55rem; font: 700 .72rem/1 var(--text); text-transform: uppercase;
  letter-spacing: .06em; color: var(--red); border: 2px solid currentColor; border-radius: 4px; padding: .22rem .35rem;
  transform: rotate(-5deg); vertical-align: .12em; white-space: nowrap; }

/* former employers' logos in the ledger: one ink colour, heights evened out by eye; the name stays for screen readers */
.ledger dt { display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start; gap: .25rem .6rem; }
.ledger dt .patent { margin-left: 0; }
.ledger .before { flex-basis: 100%; font-size: .8rem; color: var(--ink-soft); }
.ledger .logo-box { display: inline-flex; color: var(--ink); }
.ledger .co-logo { display: block; width: auto; height: 1.25rem; }
.ledger .co-logo.amazon { height: 1.6rem; margin-top: .3rem; }
.ledger .co-logo.logitech { height: 1.55rem; }
.ledger .co-logo.qualcomm { height: 1.15rem; }
.ledger .co-logo.instacart { height: 1.15rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* the top bar on product pages: the ezulabs tiles go home, the product name goes to the product's page */
.brands { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.brands .home { display: flex; padding: .3rem; margin: -.3rem; border-radius: 6px; transition: transform .15s ease; }
.brands .home:hover { transform: translateY(-2px); }
.brands .slash { font: 600 1.4rem/1 var(--pixel); color: var(--ink-soft); opacity: .5; }
.brands .brand { min-width: 0; }
.brands .brand span { white-space: nowrap; }
.brands .home .logo { display: block; width: auto; height: 1.75rem; }
@media (max-width: 420px) { .brands .home .logo { height: 1.5rem; } .brands .brand .logo { display: none; } }
@media (max-width: 420px) { .brands .brand { font-size: 1.1rem; } .brands { gap: .4rem; } }
