/* The lab's assembly gallery and interactive room previews. */
.lab-file-notice { display: none; }
:root[data-local-file] body > :is(.nav, main, .foot) { display: none; }
:root[data-local-file] .lab-file-notice {
  display: block;
  max-width: 38rem;
  margin: clamp(30px, 9vw, 120px) auto;
  padding: 0 24px;
  font-family: system-ui, sans-serif;
}
.lab-file-notice h2 { font-size: clamp(26px, 4vw, 38px); line-height: 1.13; }
.lab-file-notice p { color: var(--ink-2); }

/* the top bar spans the window like the hero under it: the logo and the theme button sit at its edges (RyzenX) */
.nav { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.nav .brand { grid-column: 2; }
.nav .nav-links { justify-self: end; }
@media (max-width: 360px) {
  .nav { padding-inline: 10px; }
  .nav .brand { gap: 4px; }
}
.brand .glim-mark { width: 52px; height: 52px; }
.brand-name { font-size: 42px; font-weight: 700; letter-spacing: -.035em; }
.brand-rule { width: 1px; height: 32px; margin-inline: 8px; background: var(--rule-2); }
.brand .ol-logo {
  width: 173px; height: 29px; background: var(--ink);
  mask: url(media/brand/omerian-labs.svg) center / contain no-repeat;
}
.lab-hero {
  --studio-veil: rgb(250 246 244 / .40);
  --studio-backdrop: linear-gradient(var(--studio-veil), var(--studio-veil)),
    url(media/lab/studio-daylight.webp) center top / cover no-repeat;
  position: relative;
  isolation: isolate;
  /* --mast: the strip left for the top bar above the stage (was 88px, then 58px: still too much air above Multimodality).
     The bar's logo sits at the left and Multimodality is centred, so the stage can start level with the bar. */
  --mast: 22px;
  padding-top: var(--mast);
  /* the three-pane hero keeps the full window width: capped at 1120px its panes are too narrow and their titles,
     cards and models run into each other (RyzenX). The sections below it keep the 1120px reading width. */
}
/* dark mode: the same studio at night (the day photo relit, object for object, so nothing jumps on the switch),
   under a light veil instead of the near-opaque one that hid the day photo */
:root[data-theme="dark"] .lab-hero {
  --studio-veil: rgb(16 19 24 / .14);
  /* the photo dissolves into the page's own night blue well before its lower edge: no line where the room ends */
  --studio-backdrop: linear-gradient(to bottom, rgb(32 39 47 / 0) 40%, rgb(32 39 47 / .55) 70%, var(--floor) 95%),
    linear-gradient(var(--studio-veil), var(--studio-veil)),
    url(media/lab/studio-night.webp) center top / cover no-repeat;
}
@media (min-width: 901px) { :root[data-theme="dark"] .lab-hero::before { background-position: center, center, center 4%; } }
.lab-hero .stage::before { content: none; }
@media (min-width: 901px) {
  /* the hero fills the window under the masthead; the two lower panes get their height from the dividers, which sit
     higher than before (apex at 46% of the stage, was 53%) */
  .lab-hero .stage { height: max(calc(100vh - var(--mast)), 760px); }
  .lab-hero .p-top { top: 0; }
  .lab-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: calc(46% + var(--mast) * 0.54);
    background: var(--studio-backdrop);
    /* top-aligned, so the branch above the vase is in view even on a short laptop screen */
    background-position: center, center 4%;
    /* Follow the upper edges of the stage dividers below the 88px masthead. */
    clip-path: polygon(0 0, 100% 0, 100% calc(54.348% + var(--mast) * 0.45652), 63% 100%, 37% 100%, 0 calc(58.696% + var(--mast) * 0.41304));
    pointer-events: none;
  }
}
@media (max-width: 900px) {
  .lab-hero { padding-top: 0; }
  .lab-hero .stage { isolation: isolate; padding-top: 110px; }
  .lab-hero .headline { grid-area: 1 / 1; }
  .lab-hero .p-top { grid-area: 2 / 1; }
  .lab-hero .p-left { grid-area: 3 / 1; }
  .lab-hero .p-right { grid-area: 4 / 1; }
  .lab-hero .stage::before {
    content: "";
    grid-area: 1 / 1 / 3 / 2;
    inset: -110px -16px 0;
    background: var(--studio-backdrop);
    mix-blend-mode: normal;
    opacity: 1;
    mask-image: none;
    z-index: -1;
  }
}
.lab-collection { width: min(100% - 2 * clamp(20px, 5vw, 80px), 1120px); margin: 0 auto; padding-block: clamp(44px, 7vw, 104px); border-top: 1px solid var(--rule-2); }
.lab-section-head { margin-bottom: 28px; }
.lab-section-head h2 { margin: 0; font: 500 clamp(32px, 3.6vw, 52px)/1.1 "Inter", system-ui, sans-serif; letter-spacing: -.025em; }
/* The uneven washes and fine paper grain sit inside the letterforms. */
@supports (background-clip: text) {
  .lab-section-head h2 {
    --pigment: #374f46;
    --wash: #77885c;
    --blue: #476c82;
    width: fit-content;
    background-color: var(--pigment);
    background-image: url("media/lab/showcase/paper-grain.svg"),
      radial-gradient(ellipse at 24% 72%, var(--wash), transparent 44%),
      radial-gradient(ellipse at 86% 27%, var(--blue), transparent 55%);
    background-clip: text;
    color: transparent;
  }
  :root[data-theme="dark"] .lab-section-head h2 {
    --pigment: #c9dccc;
    --wash: #a8bc8d;
    --blue: #a1c9db;
  }
}
@media (forced-colors: active), print {
  .lab-section-head h2 { background: none; color: var(--ink); }
}
.lab-section-head p { margin: 8px 0 0; max-width: 65ch; font-size: clamp(14px, 1.1vw, 16px); line-height: 1.5; color: var(--ink-2); }
.lab-models .lab-section-head { margin-bottom: clamp(14px, 1.7vw, 23px); }
.lab-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.lab-model-cards { column-gap: clamp(14px, 1.45vw, 22px); row-gap: clamp(22px, 3vw, 40px); }
.lab-card { min-width: 0; cursor: pointer; padding: 0; background: none; border: 0; text-align: left; color: inherit; font: inherit; }
.lab-card-image {
  display: block;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
}
.lab-models { width: 100%; border-top: 0; padding-top: clamp(28px, 3.5vw, 48px); }
.lab-card-image { background: color-mix(in srgb, var(--bg-hi) 88%, var(--flow)); }
:is([data-model="cycloidal-actuator"], [data-model="parallel-gripper"]) .lab-card-image { background: color-mix(in srgb, var(--bg-hi) 85%, var(--sage-strong)); }
:is([data-model="robot-arm"], [data-model="computer-mouse"]) .lab-card-image { background: color-mix(in srgb, var(--bg-hi) 87%, var(--lav)); }
:root:not([data-theme="dark"]) body:has(.lab-models) { background: var(--bg-hi); }
.lab-model-cards { align-items: start; }
.lab-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lab-card-title { display: block; margin-top: 5px; font-weight: 600; font-size: clamp(15px, 1.8vw, 22px); line-height: 1.2; letter-spacing: -.02em; }
.lab-card-caption { display: block; margin-top: 3px; color: var(--ink-2); line-height: 1.3; }
.lab-card-open {
  position: absolute;
  inset: auto 10px 10px auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  background: var(--sage-ink);
  color: var(--sage-strong-ink);
  font-size: 13px;
  font-weight: 600;
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.lab-card-open svg { fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) {
  .lab-card-open { opacity: 0; transform: translateY(3px); }
  .lab-card:is(:hover, :focus-visible, [aria-expanded="true"]) .lab-card-open { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lab-card-open { transition: none; }
}
.lab-inspector {
  box-sizing: border-box;
  width: min(1120px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--rule-2);
  border-radius: 16px;
  background: var(--bg-hi);
  color: var(--ink);
  box-shadow: 0 22px 85px rgb(21 27 20 / .22);
  overscroll-behavior: contain;
}
.lab-inspector::backdrop { background: rgb(22 27 24 / .52); }
html:has(.lab-inspector[open]) { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .lab-inspector[open] { animation: lab-open 260ms cubic-bezier(.16, 1, .3, 1) both; }
  .lab-inspector[open]::backdrop { animation: lab-dim 220ms ease-out; }
}
@keyframes lab-open { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes lab-dim { from { opacity: 0; } }
.lab-inspector-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.lab-inspector-head h3 { margin: 0; font-size: clamp(22px, 3vw, 32px); letter-spacing: -.025em; scroll-margin-top: 16px; }
.lab-inspector-grid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(255px, 1fr); gap: 0; }
.lab-viewer { position: relative; min-width: 0; min-height: 315px; height: clamp(315px, 52vw, 520px); border-radius: 7px; }
.lab-viewer canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; border-radius: inherit; }
.lab-viewer canvas:active { cursor: grabbing; }
.lab-status { position: absolute; inset: 40% 18px auto; margin: 0; text-align: center; pointer-events: none; color: var(--ink-2); }
.lab-viewer-tools { position: absolute; inset: auto 10px 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.lab-inspector button, .lab-inspector select { min-height: 38px; padding: 6px 11px; border: 1px solid var(--rule-2); border-radius: 5px; color: var(--ink); background: var(--bg-hi); font: inherit; }
.lab-inspector button, .lab-inspector summary { cursor: pointer; }
.lab-inspector button:disabled { opacity: .55; cursor: default; }
.lab-inspector button:not(:disabled):hover, .lab-inspector button[aria-pressed="true"] { border-color: var(--ink-2); }
.lab-details { min-width: 0; min-height: 0; }
.lab-details > p { margin: 0 0 18px; color: var(--ink-2); overflow-wrap: anywhere; }
.lab-details h4 { margin: 18px 0 4px; }
.lab-features, .lab-mates ul { max-height: 172px; overflow: auto; margin: 0; padding: 0 8px 0 23px; color: var(--ink-2); scrollbar-color: var(--rule-2) transparent; }
.lab-features li, .lab-mates li { padding-block: 4px; }
.lab-mates { margin-top: 14px; border-block: 1px solid var(--rule-2); }
.lab-mates summary { padding-block: 9px; font-weight: 600; }
.lab-mates button { display: block; min-height: 32px; padding: 3px 6px; text-align: left; }
.lab-mates button[aria-pressed="true"] { border-color: var(--ink); }
.lab-details [hidden], .lab-simulation [hidden], .lab-inspector[hidden] { display: none; }

.lab-inspector-head { margin: 0; padding: clamp(16px, 2.2vw, 28px); border-top: 1px solid var(--rule-2); background: var(--bg-hi); }
.lab-inspector-head h3 { font: 500 clamp(23px, 2.5vw, 36px)/1.1 "Inter", system-ui, sans-serif; }
.lab-assembly-stats { margin: 5px 0 0; color: var(--ink-2); font-size: 14px; }
.lab-inspector [data-close] { position: absolute; top: 12px; right: 12px; z-index: 3; display: grid; place-items: center; border-radius: 50%; width: 40px; height: 40px; padding: 0; flex: none; }
.lab-inspector .lab-viewer { overflow: hidden; background: color-mix(in srgb, var(--sage) 26%, var(--bg-hi)); height: clamp(315px, 65dvh, 640px); border-radius: 0; }
.lab-model-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.lab-inspector .lab-status { inset: 12px auto auto 12px; max-width: calc(100% - 24px); border-radius: 8px; padding: 6px 10px; background: var(--bg-hi); font-size: 13px; }
.lab-inspector .lab-details { max-height: clamp(315px, 65dvh, 640px); overflow: auto; padding: 48px 20px 20px; }
.lab-inspector .lab-viewer-tools { inset: auto auto 12px 12px; }
.lab-inspector [data-explode] { color: var(--sage-ink); background: var(--sage); }
@media (max-width: 800px) {
  .lab-inspector { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .lab-inspector .lab-viewer { min-height: 230px; height: min(56dvh, 470px); }
  .lab-inspector .lab-details { max-height: none; overflow: visible; }
  .lab-inspector-head { position: sticky; bottom: 0; z-index: 2; }
}

.lab-simulation { display: grid; grid-template-columns: minmax(0, 1.68fr) minmax(270px, 1fr); align-items: start; gap: clamp(14px, 2vw, 26px); }
.lab-simulation-main { min-width: 0; }
.lab-simulation .lab-viewer {
  height: auto;
  min-height: 0;
  aspect-ratio: 1.56;
}
.lab-simulation .lab-status { inset: 12px 12px auto; margin-inline: auto; width: max-content; max-width: calc(100% - 24px); padding: 5px 10px; border-radius: 5px; background: var(--bg-hi); }
.lab-retry { position: absolute; top: 52px; left: 50%; transform: translateX(-50%); font: inherit; color: var(--ink); background: var(--bg-hi); border: 1px solid var(--rule-2); padding: 6px 12px; border-radius: 5px; cursor: pointer; }
.lab-set-list { display: grid; gap: 4px; }
.lab-set-choice {
  display: grid;
  grid-template-columns: minmax(90px, .93fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(9px, 1.6vw, 23px);
  padding: 9px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.lab-set-choice:not(:last-child) { box-shadow: 0 1px var(--rule-2); }
.lab-set-choice[aria-pressed="true"] { background: var(--sage); }
.lab-set-choice:hover strong {
  text-decoration: underline;
  text-decoration-color: var(--ink-3);
  text-underline-offset: .19em;
}
.lab-set-choice img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; }
.lab-set-choice strong { display: block; font: 500 clamp(17px, 1.8vw, 24px)/1.18 "Inter", system-ui, sans-serif; letter-spacing: -.02em; }
.lab-set-choice small { display: block; margin-top: 5px; color: var(--ink-2); font: 400 clamp(13px, 1.1vw, 16px)/1.35 "Inter", system-ui, sans-serif; }
@media (max-width: 800px) {
  .lab-inspector-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .lab-simulation { grid-template-columns: 1fr; }
  .lab-set-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lab-set-choice { grid-template-columns: 1fr; align-content: start; }
  .lab-set-choice:not(:last-child) { box-shadow: none; }
}
@media (max-width: 530px) {
  .lab-set-choice { gap: 5px; padding: 5px; }
  .lab-set-choice strong { font-size: 15px; }
  .lab-set-choice small { font-size: 12px; }
  .brand .glim-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 30px; }
  .brand-rule { margin-inline: 2px; }
  .brand .ol-logo { width: 119px; height: 21px; }
}

.lab-integrations {
  width: min(100% - 2 * clamp(20px, 5vw, 80px), 1120px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--rule-2);
}
.lab-integrations { gap: 12px 24px; padding-block: 16px; font-size: 14px; }
.lab-integrations > span { color: var(--ink-2); }
.lab-integrations strong { display: flex; align-items: center; gap: 7px; }
.lab-integrations img { width: 20px; height: 20px; object-fit: contain; }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
.qa details { border-top: 1px solid var(--rule-2); }
.qa details:last-child { border-bottom: 1px solid var(--rule-2); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font: 600 17.5px/1.35 Inter, system-ui, sans-serif; letter-spacing: -0.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font: 400 24px/1 Inter, system-ui, sans-serif; color: var(--ink-3); transition: transform .3s var(--ease-out); }
.qa details[open] summary::after { transform: rotate(45deg); color: var(--sage-ink); }
.qa details p { padding: 0 48px 22px 0; color: var(--ink-2); }

/* close and footer */
.close { padding: 0 0 24px; }
.close-in { padding: 96px 48px; border-radius: 12px; background: color-mix(in srgb, var(--bg-hi) 78%, var(--sage)); color: var(--ink); text-align: center; display: flex; flex-direction: column; align-items: center; }
.close-in .sub { color: var(--ink-2); }
.close-in .hero-cta { justify-content: center; margin-top: 32px; }
.foot { padding: 72px 0 36px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand .ol-logo { height: 22px; color: var(--ink); }
.foot-brand p { margin-top: 16px; color: var(--ink-2); max-width: 38ch; font-size: 15px; }
.foot nav { display: flex; flex-direction: column; gap: 10px; }
.foot nav p { font: 600 13px/1 Inter, system-ui, sans-serif; color: var(--ink); margin-bottom: 4px; }
.foot nav a {
  align-self: flex-start;
  margin-inline: -8px;
  padding: 3px 8px;
  border-radius: 5px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
}
.foot nav a:is(:hover, :focus-visible) { color: var(--sage-ink); background: var(--sage); }
.faq { padding-block: clamp(40px, 6vw, 92px); }
:is(.faq, .close, .foot) .wrap { width: min(calc(100% - 2 * clamp(20px, 5vw, 80px)), 1120px); margin-inline: auto; }
:is(.faq, .close) h2 { margin: 0; font: 500 clamp(32px, 3.6vw, 52px)/1.1 Inter, system-ui, sans-serif; letter-spacing: -.025em; }
.qa details p { margin: 0; max-width: 65ch; }
.qa .cad { display: inline-flex; align-items: center; gap: .3em; white-space: nowrap; }
.qa .cad img { width: auto; height: .95em; }
.close-in .sub { margin: 16px 0 0; font-size: 18px; }
.close-in .hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.close-in .btn { padding: 12px 20px; border-radius: 24px; text-decoration: none; font-weight: 500; }
.close-in .btn-accent { background: var(--sage); color: var(--sage-ink); }
.close-in .btn-ghost-light { color: var(--ink); border: 1px solid var(--rule-2); }
.close-in .btn-accent:is(:hover, :focus-visible) { background: var(--sage-ink); color: var(--sage-strong-ink); }
.close-in .btn-ghost-light:is(:hover, :focus-visible) { background: var(--bg-hi); border-color: var(--sage-strong); }
.foot-brand .ol-logo { display: block; width: 134px; background: currentColor; mask: url(media/brand/omerian-labs.svg) left center / contain no-repeat; }
.foot-base a { color: inherit; }
.foot-base { margin-top: clamp(32px, 4vw, 56px); display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--rule-2); padding-top: 20px; color: var(--ink-2); font-size: 13px; }
@media (max-width: 800px) {
  .faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .foot-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 530px) {
  .close-in { padding: 52px 16px; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-base { flex-direction: column; }
}

.lab-build-stage { min-width: 0; position: relative; }
.lab-inspector [hidden] { display: none; }
.lab-transport { display: flex; align-items: center; gap: 6px; }
.lab-transport { position: absolute; inset: auto 16px 14px; pointer-events: none; }
.lab-transport button { pointer-events: auto; }
.lab-inspector .lab-transport button, .lab-inspector .lab-viewer-tools button { border-radius: 22px; font-size: 13px; font-weight: 600; }
.lab-inspector [data-play-build] { width: 38px; padding: 0; background: var(--bg-hi); color: var(--ink); }
[data-play-build] span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.lab-transport [data-step-label] { flex: 1; color: var(--ink-2); font-size: 13px; padding-inline: 5px; }
.lab-part-picker { margin-bottom: 10px; }
.lab-part-picker summary { padding: 9px 0; font: 500 20px/1.25 "Inter", system-ui, sans-serif; }
[data-part-list] { display: grid; max-height: 170px; overflow: auto; }
[data-part-list] button, .lab-mates button { border: 0; border-bottom: 1px solid var(--rule-2); border-radius: 0; text-align: left; background: transparent; }
[data-part-list] button[aria-pressed="true"], .lab-mates button[aria-pressed="true"] { background: var(--sage); }
.lab-transport button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
[data-play-build] svg { fill: currentColor; }
[data-play-build] .pause-glyph, [data-play-build][data-playing="true"] .play-glyph { display: none; }
[data-play-build][data-playing="true"] .pause-glyph { display: block; }

.lab-models .lab-section-head { width: min(100% - 2 * clamp(20px, 5vw, 80px), 1120px); margin-inline: auto; }
.lab-model-cards {
  --edge-fade: clamp(42px, 11vw, 208px);
  display: flex;
  overflow-x: auto;
  overflow-anchor: none;
  gap: clamp(14px, 2vw, 24px);
  padding: 4px clamp(20px, 5vw, 80px);
  scrollbar-width: none;
  mask-image: linear-gradient(to right,
    transparent, rgb(0 0 0 / .12) calc(var(--edge-fade) * .22),
    rgb(0 0 0 / .86) calc(var(--edge-fade) * .75), black var(--edge-fade),
    black calc(100% - var(--edge-fade)), rgb(0 0 0 / .86) calc(100% - var(--edge-fade) * .75),
    rgb(0 0 0 / .12) calc(100% - var(--edge-fade) * .22), transparent);
}
.lab-model-cards::-webkit-scrollbar { display: none; }
.lab-model-cards .lab-card { flex: 0 0 clamp(245px, 30vw, 415px); max-width: 84%; }
.lab-inspector-head > div { flex: 1; }
.lab-inspector-grid:has(.lab-details[hidden]) { grid-template-columns: minmax(0, 1fr); }
.lab-inspector [data-inspect-toggle] { border-radius: 22px; padding: 6px 13px; font-size: 13px; flex: none; }
.lab-build-progress { position: absolute; inset: auto -16px -14px; width: calc(100% + 32px); height: 2px; border: 0; background: var(--rule-2); accent-color: var(--sage-ink); }
.lab-build-progress::-webkit-progress-bar { background: var(--rule-2); }
.lab-build-progress::-webkit-progress-value { background: var(--sage-ink); }
@media (max-width: 530px) {
  .lab-inspector-head { gap: 6px; }
  .lab-inspector-head h3 { font-size: 23px; }
}

/* The lower panels (Diffusion LLM, World environment) sit on the studio's own floor tone, so the photo above the
   dividers runs into them instead of stopping at a hard edge; the tone eases into the page colour at the hero's foot. */
.lab-hero {
  --floor: #ecdcd0;
  --floor-lit: #f4e8df;
  --floor-shade: #e4d3c7;
}
:root[data-theme="dark"] .lab-hero { --floor: #20272f; --floor-lit: #252c35; --floor-shade: #1b2128; } /* the floor at night: the backdrop's own blue, a shade lit under each pane */
.lab-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(48% 34% at 18% 62%, var(--floor-lit), transparent 72%),
    radial-gradient(44% 32% at 84% 60%, var(--floor-lit), transparent 72%),
    radial-gradient(40% 26% at 50% 70%, var(--floor-shade), transparent 75%),
    linear-gradient(180deg, var(--floor) 0%, var(--floor) 62%, color-mix(in srgb, var(--floor) 55%, var(--bg-hi)) 86%, var(--bg-hi) 100%);
}
:root[data-theme="dark"] .lab-hero::after {
  background:
    radial-gradient(48% 34% at 18% 62%, var(--floor-lit), transparent 72%),
    radial-gradient(44% 32% at 84% 60%, var(--floor-lit), transparent 72%),
    linear-gradient(180deg, var(--floor) 0%, var(--floor) 62%, color-mix(in srgb, var(--floor) 50%, var(--bg)) 86%, var(--bg) 100%);
}
/* the dividers read as a soft crease in one surface rather than a cut between two */
.lab-hero .dividers polyline { stroke-opacity: .55; }

/* World environment: the reward chart as a frosted instrument card, with its own heading and a live marker */
.lab-hero .reward {
  position: relative;
  width: min(66%, 340px);
  margin: 14px auto 0 6%;
  padding: 34px 14px 10px 10px;
  border: 1px solid var(--pill-line);
  border-radius: 16px;
  background: var(--pill);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  backdrop-filter: blur(10px) saturate(1.1);
  box-shadow: 0 1px 0 rgb(255 255 255 / .5) inset, 0 18px 36px -22px var(--shadow);
}
:root[data-theme="dark"] .lab-hero .reward { box-shadow: 0 1px 0 rgb(255 255 255 / .04) inset, 0 18px 36px -22px var(--shadow); }
.lab-hero .reward::before,
.lab-hero .reward::after {
  position: absolute;
  top: 11px;
  font: 500 11px/1 "Inter", system-ui, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.lab-hero .reward::before { content: "Reward"; left: 14px; color: var(--ink-2); }
.lab-hero .reward::after {
  content: "Training";
  right: 12px;
  top: 8px;
  padding: 3px 8px 3px 18px;
  border-radius: 999px;
  color: var(--sage-ink);
  background:
    radial-gradient(circle at 9px 50%, var(--sage-strong) 0 3px, transparent 3.5px),
    var(--sage);
}
.lab-hero .reward #gym-stream { height: 84px; margin: 0; }
.lab-hero #gym-stream .axl { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .lab-hero .panel.live .reward::after { animation: env-live 1.6s ease-in-out infinite; }
}
@keyframes env-live { 50% { background: radial-gradient(circle at 9px 50%, transparent 0 3px, transparent 3.5px), var(--sage); } }

/* a soft pool of light on the bench under the arm, so the model sits in the scene rather than on a flat field */
.lab-hero .p-right .view::before {
  content: "";
  position: absolute;
  inset: 18% 4% 2% 8%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 251 248 / .85), rgb(255 251 248 / 0));
  pointer-events: none;
}
:root[data-theme="dark"] .lab-hero .p-right .view::before { background: radial-gradient(closest-side, rgb(255 255 255 / .06), transparent); }

/* the popup beside the arm: a small card with a status badge that springs in, holds while its step runs (a thin
   bar counts it down) and drifts away */
.lab-hero .p-right .view { z-index: 1; }
.lab-hero .env-note {
  left: 0;
  top: 44%;
  gap: 10px;
  padding: 9px 16px 9px 9px;
  border-radius: 14px;
  background: var(--card);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--pill-line);
  box-shadow: 0 1px 0 rgb(255 255 255 / .6) inset, 0 20px 40px -18px var(--shadow);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  overflow: hidden;
  transform-origin: 0 50%;
}
:root[data-theme="dark"] .lab-hero .env-note { box-shadow: 0 1px 0 rgb(255 255 255 / .05) inset, 0 20px 40px -18px var(--shadow); }
.lab-hero .env-note::before {
  content: "\2022";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  font: 600 13px/1 "Inter", system-ui, sans-serif;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--ink-3) 16%, transparent);
}
.lab-hero .env-note[data-k="bad"] { color: var(--ink); }
.lab-hero .env-note[data-k="bad"]::before { content: "!"; color: #fff; background: var(--copper); }
.lab-hero .env-note[data-k="ok"] { color: var(--ink); }
.lab-hero .env-note[data-k="ok"]::before { content: "\2713"; color: var(--sage-strong-ink); background: var(--sage-strong); }
.lab-hero .env-note[data-k="edit"]::before { content: "\270E"; color: #4a3a73; background: var(--lav); }
.lab-hero .env-note::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--ink-3);
  opacity: .35;
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.lab-hero .env-note[data-k="bad"]::after { background: var(--copper); opacity: .7; }
.lab-hero .env-note[data-k="ok"]::after { background: var(--sage-strong); opacity: .7; }
.lab-hero .env-note[data-k="edit"]::after { background: var(--lav); opacity: .9; }
.lab-hero .env-note.show { animation-name: env-note-pop; animation-timing-function: linear; }
.lab-hero .env-note.show::after { animation-name: env-note-count; animation-duration: inherit; animation-timing-function: linear; animation-fill-mode: both; }
@keyframes env-note-pop {
  0% { opacity: 0; transform: translateY(10px) scale(.92); filter: blur(4px); }
  9% { opacity: 1; transform: translateY(-1px) scale(1.015); filter: blur(0); }
  14% { transform: none; }
  84% { opacity: 1; transform: none; filter: blur(0); }
  100% { opacity: 0; transform: translateY(-8px) scale(.98); filter: blur(2px); }
}
@keyframes env-note-count { 0%, 9% { transform: scaleX(1); } 84%, 100% { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) {
  .lab-hero .env-note.show { animation: none; opacity: 1; }
  .lab-hero .env-note.show::after { animation: none; }
}

/* The studio photo no longer stops at a hard cut along the dividers: it fades into the floor colour below them. */
@media (min-width: 901px) {
  .lab-hero::before {
    clip-path: none;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 52%, rgb(0 0 0 / .55) 72%, rgb(0 0 0 / .18) 88%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 0%, #000 52%, rgb(0 0 0 / .55) 72%, rgb(0 0 0 / .18) 88%, transparent 100%);
  }
}
@media (max-width: 900px) {
  .lab-hero .stage::before {
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
  }
}

/* Omerian Labs sits alone at the top left; Glim takes the centre of the stage, where the headline was. */
.nav .brand { grid-column: 1; justify-self: start; }
.nav .nav-links { grid-column: 3; }
.nav .brand .ol-logo { width: 190px; height: 32px; }
.headline .glim-lockup { display: inline-flex; align-items: center; justify-content: center; gap: 14px; white-space: nowrap; }
.headline .glim-lockup .glim-mark { width: clamp(64px, 5.4vw, 86px); height: auto; flex: none; }
.headline .glim-name {
  font-size: clamp(64px, 5.6vw, 92px); font-weight: 700; line-height: 1; letter-spacing: -0.045em;
  background: linear-gradient(100deg, var(--sage-strong) 0%, var(--ink) 30%, var(--ink) 40%, var(--copper) 50%, var(--sage-strong) 56%, var(--ink) 66%, var(--ink) 100%);
  background-size: 300% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: wm-sweep 2.8s cubic-bezier(0.45, 0, 0.25, 1) 0.4s 1 both;
}
.headline:hover .glim-name { animation: wm-sweep2 2.2s cubic-bezier(0.45, 0, 0.25, 1) 1 both; }
.headline .glim-tag { margin: 10px auto 0; max-width: none; font-size: clamp(19px, 1.5vw, 24px); font-weight: 500; letter-spacing: -0.015em; color: var(--ink); white-space: nowrap; }
.headline .glim-tag .wm { color: var(--sage-strong); }
.headline .glim-tag + p { margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .headline .glim-name { animation: none; background-position: 0 0; } }

/* The hero's three panel titles take the same painted ink as the section headings below ("Made with Glim"). */
.lab-hero .panel h2 { font-weight: 500; letter-spacing: -.025em; }
@supports (background-clip: text) {
  .lab-hero .panel h2 {
    --pigment: #374f46;
    --wash: #77885c;
    --blue: #476c82;
    width: fit-content;
    background-color: var(--pigment);
    background-image: url("media/lab/showcase/paper-grain.svg"),
      radial-gradient(ellipse at 24% 72%, var(--wash), transparent 44%),
      radial-gradient(ellipse at 86% 27%, var(--blue), transparent 55%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .lab-hero .p-top h2 { margin-inline: auto; }
  .lab-hero .p-right h2 { margin-left: auto; }
  :root[data-theme="dark"] .lab-hero .panel h2 { --pigment: #c9dccc; --wash: #a8bc8d; --blue: #a1c9db; }
}
@media (forced-colors: active), print { .lab-hero .panel h2 { background: none; color: var(--ink); } }

/* The FAQ and the closing call to action share the section heading look above: the same rule line, painted ink
   headings and a quiet subtitle. */
.faq .wrap { border-top: 1px solid var(--rule-2); padding-top: clamp(44px, 7vw, 104px); }
.faq { padding-block: 0 clamp(40px, 6vw, 92px); }
.faq .sec-head p { margin: 12px 0 0; max-width: 32ch; font-size: clamp(14px, 1.1vw, 16px); line-height: 1.5; color: var(--ink-2); }
.qa summary:is(:hover, :focus-visible) { color: var(--sage-ink); }
@supports (background-clip: text) {
  :is(.faq, .close) h2 {
    --pigment: #374f46;
    --wash: #77885c;
    --blue: #476c82;
    width: fit-content;
    background-color: var(--pigment);
    background-image: url("media/lab/showcase/paper-grain.svg"),
      radial-gradient(ellipse at 24% 72%, var(--wash), transparent 44%),
      radial-gradient(ellipse at 86% 27%, var(--blue), transparent 55%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .close h2 { margin-inline: auto; }
  :root[data-theme="dark"] :is(.faq, .close) h2 { --pigment: #c9dccc; --wash: #a8bc8d; --blue: #a1c9db; }
}
@media (forced-colors: active), print { :is(.faq, .close) h2 { background: none; color: var(--ink); } }

/* Real-world test scenes: one framed stage that always shows the room (its still at once, the 3D set over it once it
   has loaded), beside three room cards in the same style as the model cards above. */
.lab-rooms { border-top: 0; }
.lab-simulation { grid-template-columns: minmax(0, 2.1fr) minmax(250px, 1fr); align-items: stretch; gap: clamp(16px, 2vw, 28px); }
.lab-simulation .lab-viewer {
  aspect-ratio: 16 / 10;
  height: auto;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg-hi) 86%, var(--sage-strong));
  box-shadow: 0 0 0 1px var(--pill-line), 0 30px 60px -34px var(--shadow);
}
.lab-room-poster {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity .5s var(--ease-out), transform 1.2s var(--ease-out), filter .5s var(--ease-out);
  pointer-events: none;
}
.lab-simulation .lab-viewer:not([data-live]) .lab-room-poster { transform: scale(1.02); }
.lab-simulation .lab-viewer[data-live] .lab-room-poster { opacity: 0; }
/* a lens's soft fall-off toward the corners, and a shade along the bottom so the caption reads over any room */
.lab-simulation .lab-viewer::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 75% 70% at 50% 45%, transparent 60%, rgb(20 16 14 / .26)),
    linear-gradient(180deg, transparent 55%, rgb(20 16 14 / .38));
}
.lab-room-caption {
  position: absolute; left: 16px; bottom: 14px; z-index: 2; margin: 0;
  display: grid; gap: 2px; color: #fff; pointer-events: none; text-shadow: 0 1px 10px rgb(0 0 0 / .25);
}
.lab-room-caption strong { font: 600 clamp(20px, 2vw, 28px)/1.1 "Inter", system-ui, sans-serif; letter-spacing: -.02em; }
.lab-room-caption span { font-size: clamp(13px, 1vw, 15px); opacity: .88; }
.lab-room-hint {
  position: absolute; right: 14px; bottom: 14px; z-index: 2; margin: 0;
  display: flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px;
  background: rgb(255 255 255 / .86); color: var(--sage-ink); font-size: 13px; font-weight: 500;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(4px); transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); pointer-events: none;
}
.lab-room-hint svg { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.lab-simulation .lab-viewer[data-live] .lab-room-hint { opacity: 1; transform: none; }
.lab-simulation .lab-status {
  inset: 14px 14px auto auto; z-index: 2; width: auto; margin: 0; padding: 6px 12px; border-radius: 999px;
  background: rgb(255 255 255 / .86); color: var(--ink-2); font-size: 12.5px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.lab-simulation .lab-retry {
  top: 52px; left: auto; right: 14px; transform: none; z-index: 2;
  padding: 6px 12px; border: 0; border-radius: 999px; font-size: 12.5px; font-weight: 500;
  color: var(--sage-ink); background: var(--sage);
}
:root[data-theme="dark"] .lab-simulation .lab-status, :root[data-theme="dark"] .lab-room-hint { background: rgb(30 32 36 / .86); color: var(--ink); }

.lab-set-list { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.lab-set-choice {
  position: relative;
  grid-template-columns: minmax(96px, .95fr) minmax(0, 1fr);
  gap: clamp(12px, 1.4vw, 18px);
  padding: 8px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--pill-line), 0 12px 28px -22px var(--shadow);
  transition: box-shadow .25s var(--ease-out), transform .25s var(--ease-out), background .25s var(--ease-out);
}
.lab-set-choice:not(:last-child) { box-shadow: 0 0 0 1px var(--pill-line), 0 12px 28px -22px var(--shadow); }
.lab-set-choice:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--rule-2), 0 18px 34px -22px var(--shadow); }
.lab-set-choice:hover strong { text-decoration: none; }
.lab-set-choice[aria-pressed="true"] {
  background: color-mix(in srgb, var(--sage) 45%, var(--card));
  box-shadow: 0 0 0 2px var(--sage-strong), 0 18px 34px -22px var(--shadow);
}
.lab-set-choice img { aspect-ratio: 16 / 10; height: 100%; object-fit: cover; border-radius: 9px; }
.lab-set-choice strong { font-size: clamp(16px, 1.4vw, 20px); }
.lab-set-choice small { margin-top: 3px; font-size: clamp(12.5px, .95vw, 14px); }
.lab-set-choice > span::after {
  content: "Explore"; display: inline-flex; margin-top: 10px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--pill); box-shadow: 0 0 0 1px var(--pill-line);
}
.lab-set-choice[aria-pressed="true"] > span::after { content: "Viewing"; color: var(--sage-strong-ink); background: var(--sage-strong); box-shadow: none; }
@media (max-width: 760px) {
  .lab-set-list { grid-template-rows: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lab-set-choice { grid-template-columns: 1fr; }
  .lab-set-choice > span::after { display: none; }
}
@media (max-width: 530px) {
  .lab-room-caption { left: 12px; bottom: 10px; }
  .lab-room-hint { display: none; }
}

/* the still only stands in when the 3D set cannot load; while it loads the stage stays plain */
.lab-simulation .lab-viewer .lab-room-poster { opacity: 0; transition: none; }
.lab-simulation .lab-viewer[data-still] .lab-room-poster { opacity: 1; transform: none; transition: opacity .4s var(--ease-out); }
.lab-simulation .lab-viewer:not([data-live]):not([data-still])::after { opacity: .5; }
/* a tighter gap between the model gallery and the test scenes */
.lab-models { padding-bottom: clamp(20px, 2.5vw, 36px); }
.lab-rooms { padding-top: clamp(20px, 2.5vw, 36px); }
/* Phones and narrow tablets: the live view full width on top, a little taller than wide-screen so the room has room,
   then the three rooms as compact rows under it (a thumbnail, its name and what it tests), nothing squeezed. */
@media (max-width: 760px) {
  .lab-simulation { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .lab-simulation .lab-viewer { aspect-ratio: 4 / 3; border-radius: 14px; }
  .lab-set-list { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 8px; }
  .lab-set-choice {
    grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 14px; padding: 7px; border-radius: 12px;
  }
  .lab-set-choice:hover { transform: none; }
  .lab-set-choice img { height: auto; border-radius: 8px; }
  .lab-set-choice > span { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; }
  .lab-set-choice strong { grid-column: 1; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lab-set-choice small { grid-column: 1; margin-top: 2px; font-size: 13px; }
  .lab-set-choice > span::after { display: inline-flex; grid-column: 2; grid-row: 1 / span 2; margin: 0; }
}

/* Model popup: the feature tree sits beside the model, always open. Each part is a branch; the chosen part unfolds its
   history, every step tagged with a coloured glyph for its kind, drawn in one after another along the tree's rule. */
.lab-inspector-grid { grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); }
.lab-inspector .lab-viewer-tools { inset: 14px auto auto 14px; }
.lab-tree {
  --tree-h: clamp(315px, 65dvh, 640px);
  position: relative;
  min-width: 0;
  max-height: var(--tree-h);
  overflow: auto;
  padding: 18px 14px 18px 16px;
  border-right: 1px solid var(--rule-2);
  background:
    radial-gradient(120% 60% at 0 0, color-mix(in srgb, var(--sage) 30%, transparent), transparent 70%),
    var(--bg-hi);
  scrollbar-width: thin;
  scrollbar-color: var(--rule-2) transparent;
}
.lab-tree-head {
  position: sticky; top: -18px; z-index: 1;
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  margin: -18px -14px 10px -16px; padding: 18px 14px 10px 16px;
  background: linear-gradient(var(--bg-hi) 78%, transparent);
}
.lab-tree-root { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; letter-spacing: -.01em; }
.lab-tree-root::before {
  content: ""; width: 16px; height: 16px; border-radius: 5px; flex: none;
  background: conic-gradient(from 45deg, var(--sage-strong), var(--lav), var(--copper), var(--amber), var(--sage-strong));
}
.lab-tree-head small { color: var(--ink-3); font-size: 11.5px; white-space: nowrap; }
.lab-tree-parts { list-style: none; margin: 0; padding: 0 0 0 7px; border-left: 1px solid var(--rule-2); }
.lab-tree-part { position: relative; }
.lab-tree-part::before { content: ""; position: absolute; left: -7px; top: 17px; width: 9px; height: 1px; background: var(--rule-2); }
.lab-inspector .lab-tree-node {
  display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 8px;
  width: 100%; min-height: 34px; margin-left: 2px; padding: 5px 8px; border: 0; border-radius: 9px;
  background: transparent; color: var(--ink-2); font-size: 13.5px; text-align: left;
  transition: background .2s var(--ease-out), color .2s var(--ease-out);
}
.lab-tree-node span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lab-tree-node small { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
/* how many identical parts a grouped row stands for */
.lab-inspector .lab-tree-node:has(em) { grid-template-columns: 16px minmax(0, 1fr) auto auto; }
.lab-tree-node em { font-style: normal; white-space: nowrap; font-size: 12px; font-weight: 600; color: var(--sage-strong); font-variant-numeric: tabular-nums; }
.lab-tree-glyph { width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid var(--ink-3); transform: rotate(45deg) scale(.8); transition: all .25s var(--ease-out); }
.lab-inspector .lab-tree-node:hover { background: var(--pill); color: var(--ink); border: 0; }
.lab-inspector .lab-tree-node[aria-current="true"] { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--pill-line), 0 8px 18px -14px var(--shadow); }
.lab-tree-node[aria-current="true"] .lab-tree-glyph { border-color: var(--sage-strong); background: var(--sage-strong); transform: rotate(45deg) scale(.9); }
.lab-tree-features {
  position: relative; list-style: none; margin: 4px 0 8px 18px; padding: 2px 0 2px 14px;
}
/* the rule down the unfolded part grows as its steps arrive */
.lab-tree-features::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 10px; width: 1.5px; border-radius: 1px;
  background: linear-gradient(var(--sage-strong), color-mix(in srgb, var(--sage-strong) 25%, transparent));
  transform-origin: top; animation: tree-grow .3s var(--ease-out) both;
}
.lab-tree-features li {
  position: relative; display: grid; grid-template-columns: 18px auto minmax(0, 1fr); align-items: center; gap: 7px;
  padding: 3.5px 0; font-size: 12.5px; color: var(--ink-2);
  animation: tree-step .22s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 14ms);
}
.lab-tree-features li::before { content: ""; position: absolute; left: -14px; top: 50%; width: 10px; height: 1px; background: var(--rule-2); }
.lab-tree-features li > i {
  --c: var(--ink-3);
  width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent);
}
.lab-tree-features li > i::after { content: ""; width: 8px; height: 8px; background: var(--c); }
.lab-tree-features li[data-kind="sketch"] > i { --c: #8c72cf; }
.lab-tree-features li[data-kind="sketch"] > i::after { width: 9px; height: 7px; background: none; border: 1.5px solid var(--c); border-radius: 1px; transform: skewX(-12deg); }
.lab-tree-features li[data-kind="extrude"] > i { --c: var(--sage-strong); }
.lab-tree-features li[data-kind="extrude"] > i::after { width: 8px; height: 8px; clip-path: polygon(50% 0, 100% 45%, 70% 45%, 70% 100%, 30% 100%, 30% 45%, 0 45%); }
.lab-tree-features li[data-kind="revolve"] > i { --c: #4f86b8; }
.lab-tree-features li[data-kind="revolve"] > i::after { width: 7px; height: 7px; background: none; border: 1.5px solid var(--c); border-right-color: transparent; border-radius: 50%; }
.lab-tree-features li[data-kind="cut"] > i { --c: var(--copper); }
.lab-tree-features li[data-kind="cut"] > i::after { width: 7px; height: 7px; border-radius: 50%; }
.lab-tree-features li[data-kind="edge"] > i { --c: var(--amber); }
.lab-tree-features li[data-kind="edge"] > i::after { width: 8px; height: 8px; background: none; border: 1.5px solid var(--c); border-left: 0; border-bottom: 0; border-top-right-radius: 6px; }
.lab-tree-features li[data-kind="pattern"] > i { --c: #3f9a8c; }
.lab-tree-features li[data-kind="pattern"] > i::after { width: 9px; height: 9px; background: radial-gradient(circle, var(--c) 1.4px, transparent 1.6px) 0 0 / 4.5px 4.5px; }
.lab-tree-features li > b { font-weight: 600; color: var(--ink); font-size: 12px; }
.lab-tree-features li > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: "Geist Mono", ui-monospace, monospace; font-size: 11.5px; color: var(--ink-3); }
.lab-tree-features li[data-suppressed] { opacity: .5; text-decoration: line-through; }
.lab-tree-features li:not(:has(> i)) { display: block; color: var(--ink-3); font-size: 12px; }
@keyframes tree-grow { from { transform: scaleY(0); } }
@keyframes tree-step { from { opacity: 0; transform: translateX(-6px); } }
@media (prefers-reduced-motion: reduce) { .lab-tree-features::before, .lab-tree-features li { animation: none; } }
@media (max-width: 800px) {
  .lab-inspector-grid { grid-template-columns: 1fr; }
  .lab-tree { order: 2; max-height: 300px; border-right: 0; border-top: 1px solid var(--rule-2); }
  .lab-build-stage { order: 1; }
}

/* each hero panel's one-line subtitle, under its title */
.lab-hero .panel .sub { margin: 6px 0 0; max-width: 34ch; color: var(--ink-2); font-size: clamp(13.5px, 1.05vw, 16px); font-weight: 400; line-height: 1.4; letter-spacing: -.005em; text-wrap: balance; }
.lab-hero .p-top .sub { margin: 2px auto 0; max-width: none; text-align: center; }
.lab-hero .p-left .sub { margin-left: 2vw; }
.lab-hero .p-right .sub { margin-left: auto; text-align: right; }
@media (max-width: 900px) { .lab-hero .p-left .sub, .lab-hero .p-top .sub { margin-left: 0; text-align: left; } }

/* Image-to-CAD: the picture sits higher and a little smaller, clear of the headline's curved arrow below it */
.lab-hero .mm-photo { top: 2%; width: 27%; }
