/* BOTSLIVE-1126: /bots/ in the dot style (the owner 11-26: "update the bots page to the dot style one"). The layout,
   order, spacing and motion are those of the page he reviewed over nine rounds in lane DHDOTS-1125 (127.0.0.1:7634),
   measured there at 1440 and 390 and written fresh here: a 12 column grid of 1160, sections 128 apart (96 on a phone),
   page #131313, cards #222, titles white 500, words #cdcdcd, second voice #afafaf, pill buttons. Everything on it is
   ours: the face is the site's dark look's (Instrument Sans, OFL), the four card grounds and the slides' grounds are
   gradients written here, the bots are the app's plush bots, the windows are the site's rebuilds, the pill, cards and
   asks are the app's real ones (scenes.ts, real.ts). Every rule is under .bd. */
.bd {
  --bd-ground: #131313;
  --bd-card: #222222;
  --bd-raised: #303030;
  --bd-title: #ffffff;
  --bd-ink: #cdcdcd;
  --bd-ink2: #afafaf;
  --bd-line: rgba(255, 255, 255, 0.15);
  --bd-soft: rgba(255, 255, 255, 0.1);
  --gut: 0.5rem;
  --edge: 1rem;
  --cols: 4;
  --max: 1160px;
  --inner: min(100vw - 2 * max(var(--edge), var(--gut)), var(--max));
  --col: calc((var(--inner) - (var(--cols) - 1) * var(--gut)) / var(--cols));
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --bd-sans: var(--oai2-sans-face, "DH Instrument Sans"), -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--bd-ground);
  color: var(--bd-title);
  font: 400 16px/1.5 var(--bd-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
@media (min-width: 600px) and (max-width: 1199.98px) { .bd { --edge: 1.5rem; } }
@media (min-width: 600px) and (max-width: 899.98px) { .bd { --gut: 0.75rem; --cols: 8; } }
@media (min-width: 900px) { .bd { --gut: 1rem; --cols: 12; } }
/* the frame round the page is on the page's ground too (the shell's main column, the footer's top) */

.bd *, .bd *::before, .bd *::after { box-sizing: border-box; }
.bd a { color: inherit; text-decoration: none; }
.bd button { font: inherit; color: inherit; }
:where(.bd) :where(h1, h2, h3, p, ul, figure) { margin: 0; padding: 0; font-family: inherit; }
:where(.bd) ul { list-style: none; }
.bd img, .bd video, .bd canvas { display: block; }

/* ---- the grid: 12 columns of the 1160 content (8, then 4, narrower) */
.bd-g {
  display: grid; width: 100%;
  grid-template-columns: minmax(0, 1fr) [content-start] repeat(var(--cols), minmax(0, var(--col))) [content-end] minmax(0, 1fr);
  column-gap: var(--gut);
}
.bd-g > * { grid-column: content; min-width: 0; }
@media (min-width: 900px) {
  .bd-g > .bd-10 { grid-column: 3 / span 10; }
  .bd-g > .bd-8 { grid-column: 4 / span 8; }
}
.bd-sec { padding-block: 96px; scroll-margin-top: 72px; }
@media (min-width: 900px) { .bd-sec { padding-block: 128px; } }

/* ---- type */
.bd-hero-t { font-size: clamp(2.25rem, 1.28169rem + 4.13146vw, 5rem); line-height: clamp(2.565rem, 1.53155rem + 4.40939vw, 5.5rem); letter-spacing: -0.02em; font-weight: 500; text-wrap: balance; }
.bd-xl { font-size: clamp(2.25rem, 1.6338rem + 2.62911vw, 4rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; text-wrap: balance; }
.bd-h2 { font-size: clamp(2rem, 1.91197rem + 0.375587vw, 2.25rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; text-wrap: balance; }
.bd-h3 { font-size: clamp(1.25rem, 1.16197rem + 0.375587vw, 1.5rem); line-height: clamp(1.5rem, 1.34155rem + 0.676056vw, 1.95rem); letter-spacing: -0.01em; font-weight: 500; }
.bd-body { font-size: 1.0625rem; line-height: 1.45; color: var(--bd-ink); text-wrap: pretty; }
.bd-small { font-size: 0.875rem; line-height: 1.45; color: var(--bd-ink); text-wrap: pretty; }
@media (max-width: 899.98px) { .bd-small { line-height: 1.5; } }

/* ---- buttons: a white pill (the door), a quiet line pill */
.bd-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.bd .bd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 40px; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--bd-line); background: transparent; color: #fff; font-size: 14px; line-height: 14px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; cursor: pointer; transition: background-color 0.12s var(--ease), border-color 0.12s var(--ease); }
.bd .bd-btn:hover { background: rgba(255, 255, 255, 0.08); }
.bd .bd-btn--white { min-height: 38px; background: #fff; border-color: #fff; color: #0d0d0d; }
.bd .bd-btn--white:hover { background: #e9e9e9; border-color: #e9e9e9; }
.bd .bd-btn--tall { min-height: 44px; }
.bd :focus-visible { outline: 2px solid #7289ff; outline-offset: 3px; }

/* ---- reveal on scroll */
.bd-rv { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.bd-rv[data-in] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .bd-rv { opacity: 1; transform: none; transition: none; } }
.bd-nojs .bd-rv { opacity: 1; transform: none; }

/* ---- the bar that follows once the hero is passed */
.bd-sub { position: fixed; z-index: 60; top: 8px; left: 0; right: 0; padding: 0 16px; pointer-events: none; transform: translateY(-80px); opacity: 0; transition: transform 0.4s var(--ease-out), opacity 0.3s ease; }
.bd-sub[data-on] { transform: none; opacity: 1; }
.bd-sub__in { pointer-events: auto; position: relative; margin: 0 auto; width: min(774px, 100%); height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; border-radius: 999px; background: rgba(33, 33, 33, 0.8); -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px); }
.bd-sub:not([data-on]) .bd-sub__in { pointer-events: none; }
.bd-sub__name { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 560; letter-spacing: -0.02em; color: #fff; }
.bd-sub__name img { width: 24px; height: 24px; border-radius: 6px; }
.bd-sub__links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; }
.bd .bd-sub__links a { padding: 4px 12px; border-radius: 999px; font-size: 14px; line-height: 20px; color: #fff; white-space: nowrap; }
.bd .bd-sub__links a:hover { background: rgba(255, 255, 255, 0.1); }
@media (max-width: 899.98px) { .bd-sub__in { height: 60px; } .bd-sub__links { display: none; } }
@media (prefers-reduced-motion: reduce) { .bd-sub { transition: none; } }

/* ---- hero */
.bd-hero { padding-block: 96px; row-gap: 32px; }
@media (min-width: 900px) { .bd-hero { row-gap: 64px; } }
.bd-hero__head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.bd-hero__lead { max-width: 15.8em; font-size: clamp(1.25rem, 1.16197rem + 0.375587vw, 1.5rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; color: var(--bd-ink2); text-wrap: balance; }
@media (min-width: 900px) { .bd-hero__lead { font-size: clamp(2rem, 1.91197rem + 0.375587vw, 2.25rem); } }
.bd-herobot { position: relative; width: 96px; height: 96px; padding: 0; border: 0; background: none; border-radius: 16px; cursor: pointer; display: grid; place-items: center; }
@media (min-width: 900px) { .bd-herobot { width: 114px; height: 114px; } }
.bd-herobot > span { transition: transform 0.36s var(--ease), opacity 0.2s ease; }
.bd-herobot[data-turn] > span { transform: rotateY(90deg) scale(0.9); opacity: 0.2; }
@media (prefers-reduced-motion: reduce) { .bd-herobot > span { transition: none; } }
.bd-film { position: relative; aspect-ratio: 16 / 9; border-radius: 37px; overflow: hidden; background: #1b1b1b; isolation: isolate; }
@media (min-width: 900px) { .bd-film { border-radius: 60px; } }
/* TEMPLATE-1128: a film or a picture as a card's or a slide's demo fills its ground */
.bd-media video, .bd-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bd-film video, .bd-film img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bd-film__ctl { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 8px; z-index: 2; }
.bd-film__ctl button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.22); display: grid; place-items: center; background: rgba(32, 32, 32, 0.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; cursor: pointer; padding: 0; }
.bd-film__ctl button:hover { background: rgba(60, 60, 60, 0.8); }
@media (min-width: 900px) { .bd-film__ctl { right: 38px; bottom: 37px; } .bd-film__ctl button { width: 44px; height: 44px; background: rgba(32, 32, 32, 0.91); } }

/* ---- "Put a bot to work": the head and the four cards */
.bd-head { display: grid; gap: 12px; text-align: center; justify-items: center; }
.bd-bento { display: grid; gap: 48px; margin-top: 32px; }
.bd-card { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 24px; align-items: center; }
.bd-plate { position: relative; aspect-ratio: 1 / 1; border-radius: 37px; overflow: hidden; isolation: isolate; }
.bd-card__text { padding: 0 24px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.bd-card__text .bd-btn { margin-top: 12px; }
@media (min-width: 900px) {
  .bd-bento { gap: 32px; margin-top: 64px; }
  .bd-card { grid-template-columns: repeat(10, minmax(0, 1fr)); column-gap: var(--gut); }
  .bd-plate { aspect-ratio: 670 / 377; grid-column: 4 / span 7; grid-row: 1; }
  .bd-card__text { grid-column: 1 / span 3; grid-row: 1; }
  .bd-card__text h3, .bd-card__text p { max-width: 230px; }
  .bd-card[data-flip] .bd-plate { grid-column: 1 / span 7; }
  .bd-card[data-flip] .bd-card__text { grid-column: 8 / span 3; }
}

/* the grounds: soft light gradients, written here (no picture) */
.bd-bg-sun { background: radial-gradient(70% 90% at 88% 30%, #e9b949 0%, rgba(233, 185, 73, 0.75) 22%, rgba(240, 205, 110, 0) 70%), radial-gradient(60% 70% at 30% 0%, #f3e08e 0%, rgba(243, 224, 142, 0) 75%), linear-gradient(180deg, #f1e4a0 0%, #f8ebbe 55%, #fef3d6 100%); }
.bd-bg-coral { background: radial-gradient(60% 70% at 12% 8%, #f09a85 0%, rgba(240, 154, 133, 0) 75%), radial-gradient(50% 60% at 100% 100%, #f6a48e 0%, rgba(246, 164, 142, 0) 75%), linear-gradient(120deg, #e97862 0%, #e96f58 50%, #ea6a52 100%); }
.bd-bg-sky { background: radial-gradient(60% 46% at 52% 0%, #e3eeef 0%, rgba(227, 238, 239, 0.75) 30%, rgba(200, 232, 242, 0) 100%), radial-gradient(34% 70% at 100% 50%, #74dcfb 0%, rgba(116, 220, 251, 0) 100%), radial-gradient(30% 60% at 0% 30%, #8fd8f3 0%, rgba(143, 216, 243, 0) 100%), linear-gradient(165deg, #55cdf9 0%, #1bbffe 35%, #0fb3f8 60%, #3fc6fa 100%); }
.bd-bg-sky2 { background: radial-gradient(60% 50% at 40% 0%, #d9f0f6 0%, rgba(217, 240, 246, 0) 100%), radial-gradient(40% 70% at 100% 60%, #5dd5fa 0%, rgba(93, 213, 250, 0) 100%), linear-gradient(150deg, #18a1d5 0%, #0f9bd6 40%, #2fb8ec 75%, #5bcefb 100%); }
.bd-bg-pink { background: radial-gradient(50% 55% at 0% 0%, #f4d3f1 0%, rgba(244, 211, 241, 0) 100%), radial-gradient(60% 60% at 100% 100%, #c93fca 0%, rgba(201, 63, 202, 0) 100%), linear-gradient(160deg, #e57ae2 0%, #e066dd 40%, #da58d8 70%, #d24bd1 100%); }
.bd-bg-lime { background: radial-gradient(60% 60% at 85% 10%, #eef7a8 0%, rgba(238, 247, 168, 0) 100%), radial-gradient(50% 60% at 0% 100%, #a9d64a 0%, rgba(169, 214, 74, 0) 100%), linear-gradient(170deg, #d3ea72 0%, #c6e360 50%, #b9dc55 100%); }

/* ---- "You control what it sees and does" */
.bd-side__head { display: grid; justify-items: center; text-align: center; }
.bd-side__shield { width: 48px; height: 48px; margin-bottom: 12px; }
.bd-side__head .bd-body { margin-top: 24px; }
.bd-side__head .bd-btn { margin-top: 24px; }
.bd-side__cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 32px; }
.bd-side__card { padding: 20px; background: var(--bd-card); border: 1px solid var(--bd-soft); border-radius: 30px; display: grid; align-content: start; gap: 4px; }
.bd-side__card h3 { font-size: clamp(1rem, 0.955986rem + 0.187793vw, 1.125rem); line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.bd-side__icon { width: 36px; height: 36px; border-radius: 10px; background: var(--bd-raised); display: grid; place-items: center; margin-bottom: 8px; }
@media (min-width: 900px) {
  .bd-side__shield { width: 64px; height: 64px; margin-bottom: 16px; }
  .bd-side__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 64px; }
  .bd-side__card h3 { font-weight: 500; }
}

/* ---- "Get DuckyHelper" */
.bd-get__card { display: grid; justify-items: center; text-align: center; padding: 48px 24px; border-radius: 45px; background: var(--bd-card); border: 1px solid var(--bd-soft); }
.bd-get__bot { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 16px; }
.bd-get__card .bd-body { margin-top: 12px; max-width: 670px; }
.bd .bd-get__card .bd-body a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.4); }
.bd-get__card .bd-btns { margin-top: 32px; }
@media (min-width: 900px) { .bd-get__card { padding: 48px; } }

/* ---- the close: the title and the two doors, then the site's own footer */
.bd-close { padding-top: 80px; padding-bottom: clamp(24px, 3vw, 48px); }
@media (min-width: 900px) { .bd-close { padding-top: 128px; } }
.bd-close__head { display: grid; justify-items: center; text-align: center; gap: 24px; }


/* ================= MingLLM mini site (11-30): the page's own parts on the /bots look */
@font-face { font-family: "DH Instrument Sans"; src: url("/assets/instrument-sans-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
html, body { margin: 0; background: #131313; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.bd { margin-left: 0; width: 100%; min-height: 100vh; }
.mg-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1192px; margin: 0 auto; padding: 16px; position: relative; }
.mg-name { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 560; letter-spacing: -0.02em; color: #fff; }
.bd .mg-mark { display: block; width: 24px; height: 24px; border-radius: 6px; flex: none; box-shadow: 0 0 0 1px rgba(217, 217, 217, 0.16); }
.mg-links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; }
.bd .mg-links a { padding: 6px 12px; border-radius: 999px; font-size: 14px; line-height: 20px; color: #fff; white-space: nowrap; }
.bd .mg-links a:hover { background: rgba(255, 255, 255, 0.1); }
@media (max-width: 899.98px) { .mg-links { display: none; } }
.bd-hero { padding-block: 64px 96px; }
.bd-hero__lead { max-width: 20em; }
.bd-film__ctl svg .on, .bd-film__ctl button[aria-pressed="true"] svg .off { display: none; }
.bd-film__ctl button[aria-pressed="true"] svg .on { display: initial; }
.bd-film__ctl svg .play, .bd-film__ctl button[data-paused] svg .pause { display: none; }
.bd-film__ctl button[data-paused] svg .play { display: initial; }
.mg-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.bd-plate .mg-art { top: 50%; transform: translateY(-50%); height: auto; aspect-ratio: 670 / 377; }
.mg-scan { animation: mg-scan 4s linear infinite; }
@keyframes mg-scan { from { transform: translateX(0); } to { transform: translateX(350px); } }
.mg-bars rect { transform-box: fill-box; transform-origin: left center; animation: mg-bar 4s var(--ease-out) infinite; }
@keyframes mg-bar { 0% { transform: scaleX(0.1); } 30%, 100% { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .mg-scan, .mg-bars rect { animation: none; } }
.mg-programs { margin-top: 48px; text-align: center; font-size: 0.875rem; line-height: 1.6; color: var(--bd-ink2); }
.mg-programs b { color: #fff; font-weight: 500; }
.bd-get__card .bd-h2 { text-wrap: balance; }
.mg-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 1192px; margin: 0 auto; padding: 64px 16px 32px; font-size: 13px; color: var(--bd-ink2); }

/* DuckyHelper demo cards: a real screen recording set on the card's ground, the whole plate a link */
.bd .mg-shot { display: grid; place-items: center; container-type: size; }
.mg-shot video { width: min(88cqw, 84cqh * var(--r, 1.6)); height: auto; aspect-ratio: var(--r, 1.6); border-radius: 12px; box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28); background: #000; }
.bd-head .bd-btn { margin-top: 12px; }
.mg-foot a:hover { color: #fff; }

/* the Go2, cut out: rendered here from Unitree's open model (unitreerobotics/unitree_mujoco, BSD-3) */
.bd .mg-go2 { width: min(640px, 92%); height: auto; margin-bottom: 16px; }
#work .bd-head { gap: 20px; }
#work .bd-hero__lead { max-width: 22em; }
#work .bd-card__text h3, #work .bd-card__text p { max-width: 260px; }

/* the robot cards: a full picture in the colour-trail style */
.mg-pic { background: #d9d0ee; }
.mg-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.bd-film video { cursor: pointer; }
