/* Omerian Labs research hero, light studio version: tokens, the three-panel stage, pills and cards. Colours live in :root only. */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 400; font-display: swap; src: url(fonts/geist-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format("woff2"); }

:root {
  --bg: #f1e8e5;
  --bg-hi: #fbf6f4;
  --bg-lo: #e6dad6;
  --ink: #2b2725;
  --ink-2: #5d5552;
  --ink-3: #8a807c;
  --line: #ffffff;
  --pill: rgba(255, 255, 255, 0.72);
  --card: rgba(255, 255, 255, 0.92);
  --pill-line: rgba(43, 39, 37, 0.08);
  --sage: #c8dabd;
  --sage-ink: #33472c;
  --sage-strong: #7d9a72;
  --sage-strong-ink: #f6fbf3;
  --lav: #c3b0ea;
  --amber: #e8a33b;
  --shadow: rgba(84, 60, 52, 0.16);
  --beam: rgba(255, 252, 250, 0.55);
  --beam-soft: rgba(255, 250, 248, 0);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  /* the placeholder scenes' palette (research-scenes.css), lit for a light room */
  --steel-top: #f1efec; --steel-left: #c9c6c1; --steel-right: #a9a6a1; --night: #3a3532; --wire: #9aa6bb;
  --copper: #e0733f; --copper-soft: #c8673a; --muted: #8a807c; --ivory: #2b2725; --rule-2: #d6ccc8; --rule: #e3dad6;
  --dim: #a59b96; --panel: #f6f0ee; --panel-2: #efe7e4; --flow: #6c95c4;
  --ramp-0: #3b5bdb; --ramp-1: #2fa4c9; --ramp-2: #6cc287; --ramp-3: #e8c547; --ramp-4: #e2572b;
}

/* dark: the same studio after dark (data-theme is set from the visitor's choice, else their system setting) */
:root[data-theme="dark"] {
  /* night: every surface carries the backdrop's blue, so the photo and the page read as one room */
  --bg: #1c2229; --bg-hi: #262d36; --bg-lo: #14191f; /* sampled from the night photo: its table and wall under the veil */
  --ink: #ece8e4; --ink-2: #b6afa9; --ink-3: #86807b;
  --line: rgba(255, 255, 255, 0.16);
  --pill: rgba(38, 45, 54, 0.78); --pill-line: rgba(200, 215, 235, 0.10); --card: rgba(28, 34, 41, 0.94);
  --sage: #3e5137; --sage-ink: #d7e7ce; --sage-strong: #8fb084; --sage-strong-ink: #10170d;
  --shadow: rgba(0, 0, 0, 0.55); --beam: rgba(255, 255, 255, 0.05); --beam-soft: rgba(255, 255, 255, 0);
  --steel-top: #39424d; --steel-left: #2b323b; --steel-right: #222830; --night: #0f1318; --wire: #6d7a91;
  --muted: #86807b; --ivory: #ece8e4; --rule-2: #353d48; --rule: #2a313a;
  --dim: #6f6863; --panel: #20262e; --panel-2: #272e37;
  color-scheme: dark;
}
.theme { border: 0; background: transparent; color: var(--ink-2); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.theme:hover { color: var(--ink); background: var(--pill); }
.theme svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.theme .moon, :root[data-theme="dark"] .theme .sun { display: none; }
:root[data-theme="dark"] .theme .moon { display: block; }

* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
body {
  color: var(--ink); font: 400 15px/1.45 "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 600px at 18% 8%, var(--bg-hi), transparent 70%),
    radial-gradient(700px 500px at 85% 12%, var(--bg-hi), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg) 60%, var(--bg-lo) 100%);
  min-height: 100vh;
}
::selection { background: var(--sage); color: var(--sage-ink); }
:focus-visible { outline: 2px solid var(--sage-strong); outline-offset: 3px; border-radius: 6px; }

.nav { position: absolute; inset: 0 0 auto; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 20px clamp(20px, 3vw, 44px); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 23px; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 14px; }
.nav-links a:hover { color: var(--ink); }
.nav-links .talk { color: var(--sage-strong-ink); background: var(--sage-strong); padding: 8px 16px; border-radius: 9px; }

/* ---------- the stage: three panels round the headline ---------- */
.stage { position: relative; height: max(100vh, 820px); overflow: hidden; }
/* the studio: window light falling across the back wall from the upper left, and a warmer floor */
.stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(115deg, transparent 8%, var(--beam) 14%, var(--beam-soft) 24%, transparent 26%),
    linear-gradient(115deg, transparent 22%, var(--beam) 27%, var(--beam-soft) 36%, transparent 38%),
    linear-gradient(115deg, transparent 63%, var(--beam) 68%, var(--beam-soft) 76%, transparent 78%);
  mix-blend-mode: soft-light; opacity: 0.9;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 75%);
          mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 75%);
}
.dividers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.dividers polyline { fill: none; stroke: var(--line); stroke-width: 2.5; vector-effect: non-scaling-stroke; opacity: 0.9; filter: drop-shadow(0 1px 2px var(--shadow)); }

.panel { position: absolute; }
.panel h2 { margin: 0; font-weight: 500; font-size: clamp(26px, 2.4vw, 38px); letter-spacing: -0.02em; }
.view { position: relative; }
.view canvas { width: 100%; height: 100%; display: block; }

.p-top { left: 24%; right: 24%; top: 4%; height: 41%; text-align: center; }
.p-top h2 { margin-top: 6px; }
.p-top .wheel { margin: 10px auto 0; width: min(520px, 90%); }
/* the capability wheel, in the light room */
.wheel {
  position: relative; height: 46px; perspective: 700px; overflow: hidden; cursor: grab; user-select: none; touch-action: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
}
.wheel:active { cursor: grabbing; }
.wheel-drum { position: absolute; inset: 0; transform-style: preserve-3d; }
.wheel-item {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 190px; margin-left: -95px;
  display: flex; align-items: center; justify-content: center; font: 500 14px/1 "Inter", sans-serif; color: var(--ink-3);
  white-space: nowrap; backface-visibility: hidden; transition: color .2s;
}
.wheel-item.on, .wheel-item:hover { color: var(--sage-ink); }
.wheel-lens {
  position: absolute; top: 4px; bottom: 4px; left: 50%; width: 162px; margin-left: -81px; pointer-events: none;
  border-radius: 10px; background: var(--sage); opacity: .55; box-shadow: 0 6px 16px -10px var(--shadow);
  transition: width .25s ease, margin-left .25s ease;
}
.wheel-item.on { z-index: 1; }
/* a capability without a live 3D view shows its example in a card over the plinth */
.mm-card {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: min(46%, 380px); aspect-ratio: 4 / 3;
  border-radius: 16px; overflow: hidden; background: var(--pill); border: 1px solid var(--pill-line); box-shadow: 0 18px 36px -20px var(--shadow);
}
.mm-card .mm-scene { position: absolute; inset: 0; }
.mm-card svg, .mm-card video { width: 100%; height: 100%; display: block; object-fit: cover; }
.view.no3d canvas, .view.no3d .tag-l, .view.no3d .tag-r, .view.no3d .arrow, .view.no3d .chip { visibility: hidden; }
.p-top .view { height: calc(100% - 100px); }
.p-left { left: 2%; width: 34%; top: 40%; bottom: 0; }
.p-left h2 { margin: 2vh 0 0 2vw; }
.p-left .view { position: absolute; left: 0; width: 64%; top: 12%; bottom: 0; }
.p-right { left: 64%; right: 2%; top: 38%; bottom: 0; text-align: right; }
.p-right h2 { margin: 2vh 0 0 0; }
/* a pane's grey subtitle, under its title */
.panel .sub { margin: 4px 0 0; color: var(--muted); font-size: clamp(14px, 1.15vw, 18px); font-weight: 400; letter-spacing: -0.005em; }
.p-left .sub { margin-left: 2vw; }
/* the Diffusion card (the calls being unmasked) rests at the pane's bottom right, clear of the machine */
/* frozen with the scene: while the pointer is off the pane the card's spinner and token shimmer hold still too */
.p-left:not(.live) .diff-tree, .p-left:not(.live) .diff-tree * { animation-play-state: paused !important; }
.p-left .diff-tree:not(.at) { top: auto; bottom: 3.2vh; transform: translate(12px, 0); }
.p-left .diff-tree.in:not(.at) { transform: none; }
.p-right .view { position: absolute; left: 10%; width: 90%; top: 38%; bottom: 1%; }

.headline {
  position: absolute; left: 50%; top: 64%; transform: translate(-50%, -50%); width: 30vw; min-width: 340px; text-align: center;
}
.headline h1 { margin: 0; font-weight: 500; font-size: clamp(32px, 2.8vw, 46px); white-space: nowrap; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.headline p { margin: 14px auto 0; max-width: 28ch; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); text-wrap: balance; }

/* ---------- pills, tabs, cards ---------- */
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--pill); border: 1px solid var(--pill-line); box-shadow: 0 6px 18px -10px var(--shadow); }
.seg button {
  border: 0; background: transparent; font: 500 14px/1 "Inter", sans-serif; color: var(--ink-2); padding: 9px 22px; border-radius: 9px; cursor: pointer;
  transition: background .25s, color .25s;
}
.seg button[aria-selected="true"] { background: var(--sage); color: var(--sage-ink); }
.seg button:disabled { opacity: 0.45; cursor: default; }
.pill {
  position: absolute; padding: 6px 14px; border-radius: 999px; background: var(--pill); border: 1px solid var(--pill-line);
  font-size: 13px; color: var(--ink-2); box-shadow: 0 6px 16px -10px var(--shadow);
}
.pill.on { background: var(--sage); color: var(--sage-ink); }
.tag-l, .tag-r { transform: translateX(-50%); white-space: nowrap; } /* left/top set from the models' screen positions */
.chip {
  position: absolute; right: 3%; bottom: 3%; display: inline-flex; gap: 14px; align-items: center;
  padding: 8px 14px; border-radius: 10px; background: var(--pill); border: 1px solid var(--pill-line); font-size: 13px; color: var(--ink);
  box-shadow: 0 8px 20px -12px var(--shadow);
}
.chip b { font-weight: 400; color: var(--ink-2); }
.arrow { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); width: 30px; height: 30px; }
.arrow svg { width: 100%; height: 100%; fill: none; stroke: var(--ink); stroke-width: 1.6; }

.card {
  position: absolute; margin: 0; border-radius: 16px; background: var(--pill); border: 1px solid var(--pill-line);
  box-shadow: 0 14px 30px -18px var(--shadow); text-align: center;
}
.card-view { border-radius: 12px; overflow: hidden; background: rgba(240, 232, 236, 0.7); }
.card-view canvas { width: 100%; height: 100%; display: block; }
.p-left .card { right: 4%; top: 20%; width: 31%; padding: 8px 8px 10px; }
.p-left .card-view { aspect-ratio: 1 / 0.95; }
.card figcaption { margin: 10px 0 8px; font-size: 14px; color: var(--ink); }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 18px 6px 4px; font-size: 12.5px; color: var(--ink-2); border-top: 1px solid var(--pill-line); }
.steps::before { content: ""; position: absolute; left: 16%; right: 16%; top: 11px; height: 2px; background: var(--pill-line); }
.steps span { position: relative; padding: 3px 0; border-radius: 999px; transition: background .25s, color .25s; }
.steps span::before { content: ""; position: absolute; left: 50%; top: -12px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--bg-lo); }
.steps span.on { background: var(--sage); color: var(--sage-ink); }
.steps span.on::before { background: var(--sage-strong); }
.steps .dot { display: none; }

.env-bar { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin: 12px 0 0 0; }
.run {
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; padding: 10px 18px; border-radius: 10px;
  background: var(--sage-strong); color: var(--sage-strong-ink); font: 500 14px/1 "Inter", sans-serif; box-shadow: 0 8px 18px -10px var(--shadow);
}
.run svg { width: 13px; height: 13px; fill: currentColor; }
.run.going { opacity: .75; }
.inset { right: 0; top: 27%; width: 35%; padding: 6px 6px 10px; }
.inset .card-view { aspect-ratio: 1.15 / 1; }
.meter { display: flex; align-items: center; gap: 8px; padding: 10px 6px 0; }
.meter svg { width: 12px; height: 12px; fill: var(--sage-strong); flex: none; }
.meter .track { position: relative; flex: 1; height: 2px; background: var(--pill-line); border-radius: 1px; }
.meter i { position: absolute; top: -5px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--sage-strong); left: 0; }
.inset figcaption { margin: 8px 0 0; font-size: 13px; color: var(--ink-2); }

/* still until hovered: a soft cue that the panel plays */
.panel .view, .panel .card { transition: filter .4s var(--ease-out); }
.panel:not(.live) .view canvas { filter: saturate(0.92); }

@media (prefers-reduced-motion: reduce) { * { transition-duration: 0.01ms !important; } }

/* the gym: the loop's steps on the rig, and the rewards from all the environments */
.gym-steps { margin: 0; padding: 0; list-style: none; display: flex; gap: 6px; }
.gym-steps li { padding: 5px 10px; border-radius: 999px; font-size: 12.5px; color: var(--ink-3); background: var(--pill); border: 1px solid var(--pill-line); transition: background .25s, color .25s; }
.gym-steps li.on { background: var(--sage); color: var(--sage-ink); }
.gym-steps li[data-p="break"].on { background: #f6d5cb; color: #8a2f17; }
.gym { right: 0; top: 69%; width: 35%; padding: 10px 12px 12px; text-align: left; }
.gym-head { white-space: nowrap; gap: 8px; display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.gym-head b { font-weight: 600; color: var(--sage-strong); }
.gym-head b.bad { color: #c4502c; }
#gym-stream { width: 100%; height: 44px; display: block; margin: 6px 0 8px; overflow: visible; }
#gym-stream .rb { stroke: var(--pill-line); stroke-width: 1; }
#gym-stream .rm { fill: none; stroke: var(--sage-strong); stroke-width: 1.6; }
#gym-stream .rp { fill: #6cbf7f; } #gym-stream .rf { fill: #e0673f; }
.gym-swarm { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.gym-swarm i { height: 14px; border-radius: 4px; background: var(--bg-lo); transition: background .3s; }
.gym-swarm i[data-s="build"] { background: #e7dfd9; } .gym-swarm i[data-s="break"] { background: #eda58c; }
.gym-swarm i[data-s="edit"] { background: var(--lav); } .gym-swarm i[data-s="verify"] { background: var(--sage-strong); }

/* the diffusion panel's tag, feature tree and generation card (as on the dark page), lit for the light room */
/* diffusion: hover name tag and the clicked part's feature tree */
.diff-view { position: relative; }
.diff-tag {
  position: absolute; left: 0; top: 0; pointer-events: none; z-index: 2;
  padding: 3px 8px; border-radius: 5px; background: var(--card); border: 1px solid var(--pill-line);
  font: 400 11.5px/1.3 "Geist Mono", ui-monospace, monospace; color: var(--ivory); white-space: nowrap;
}
.diff-tree {
  position: absolute; right: 0; top: 50%; z-index: 2; min-width: 168px; text-align: left;
  padding: 14px 16px 12px; border: 1px solid var(--pill-line); border-radius: 14px;
  background: var(--card); backdrop-filter: blur(6px);
  box-shadow: 0 18px 40px -12px var(--shadow);
  opacity: 0; transform: translate(12px, -50%); filter: blur(4px);
  transition: opacity .5s var(--ease-out) .35s, transform .6s var(--ease-out) .35s, filter .5s var(--ease-out) .35s;
}
.diff-tree.in { opacity: 1; transform: translate(0, -50%); filter: blur(0); }
.diff-tree h3 { margin: 0 22px 8px 0; font-weight: 500; font-size: 14px; letter-spacing: -0.01em; }
.diff-tree ol { margin: 0; padding: 0; list-style: none; counter-reset: f; }
.diff-tree li {
  position: relative; padding: 3px 0 3px 16px; counter-increment: f;
  font: 400 11.5px/1.35 "Geist Mono", ui-monospace, monospace; color: var(--muted);
  opacity: 0; animation: tree-row .5s var(--ease-out) forwards;
}
.diff-tree li::before { content: ""; position: absolute; left: 3px; top: 0; bottom: 0; width: 1px; background: var(--rule-2); }
.diff-tree li::after { content: ""; position: absolute; left: 3px; top: 50%; width: 7px; height: 1px; background: var(--copper); }
.diff-tree li:first-child { color: var(--ivory); }
@keyframes tree-row { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.diff-close {
  position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; padding: 4px; border: 0; border-radius: 5px;
  background: transparent; color: var(--muted); cursor: pointer;
}
.diff-close:hover { color: var(--ivory); background: var(--panel-2); }
.diff-close svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.5; fill: none; }

/* act one: the hero part's feature history as masked-token diffusion (the landing page's bracket.glim effect) */
.diff-tree.gen { pointer-events: none; min-width: 0; padding: 12px 18px 11px 14px; }
.diff-tree.gen h3 { margin-right: 0; display: flex; align-items: baseline; gap: 6px; }
.diff-tree.gen h3 span { color: var(--copper-soft); font-weight: 400; }
.diff-tree.gen h3 em { margin-left: auto; padding-left: 14px; font: 400 10.5px "Geist Mono", ui-monospace, monospace; font-style: normal; color: var(--dim); }
.gen-code { margin: 0; font: 400 11.5px/1.6 "Geist Mono", ui-monospace, monospace; color: var(--ivory); white-space: pre; }
.gen-code .k { color: var(--copper-soft); }
.gen-code .n { color: var(--ivory); }
.gen-code .cz { position: relative; }
.gen-code .cz-c { opacity: 0; }
.gen-code .cz.on .cz-c { opacity: .999; transition: opacity .14s linear; animation: cz-glow .7s ease-out; }
.gen-code .cz-g { position: absolute; left: 0; top: 0; color: var(--dim); opacity: .9; pointer-events: none; }
.gen-code .cz-g.hot { color: var(--copper); }
.gen-code .cz.on .cz-g { opacity: 0; visibility: hidden; transition: opacity .12s linear, visibility 0s .12s; }
.gen-code .cz-g i { position: absolute; left: 0; top: 0; font-style: normal; }
.gen-code .cz-g i + i, .gen-code .cz.b .cz-g i { visibility: hidden; }
.gen-code .cz.b .cz-g i + i { visibility: visible; }
@keyframes cz-glow { from { color: var(--copper); } }
.diff-read[hidden] { display: none; }
.p-left .diff-view { position: absolute; left: 0; right: 0; top: 12%; bottom: 0; }
.p-left .diff-view canvas { width: 100%; height: 100%; display: block; }
.p-left .diff-tree { right: 4%; }

/* the exploded view's part tag and the hint */
.mm-tag {
  position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; display: grid; gap: 2px; text-align: left;
  padding: 8px 11px; border-radius: 10px; background: var(--card); border: 1px solid var(--pill-line);
  box-shadow: 0 10px 24px -14px var(--shadow); white-space: nowrap;
}
.mm-tag b { font-weight: 600; font-size: 13px; color: var(--ink); }
.mm-tag .mat { font-style: normal; justify-self: start; margin: 2px 0 4px; padding: 3px 8px; border-radius: 999px; background: var(--sage); color: var(--sage-ink); font-size: 11.5px; }
.mm-tag ol.hist { margin: 2px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.mm-tag .hist li { display: flex; gap: 8px; align-items: flex-start; padding: 6px 8px; border-radius: 8px; background: var(--bg-hi); border: 1px solid var(--pill-line); }
.mm-tag .hist svg { flex: none; width: 15px; height: 15px; margin-top: 1px; fill: none; stroke: var(--sage-strong); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.mm-tag .hist span { display: grid; font-size: 12px; color: var(--ink-2); line-height: 1.3; }
.mm-tag .hist span b { font-weight: 500; color: var(--ink); font-size: 12.5px; }
.mm-tag .hist span b em { font-style: normal; font-weight: 400; color: var(--ink-2); margin: 0; font-size: 12px; }
.mm-tag .hist li { padding: 5px 8px; }
.mm-tag .hist span i { font-style: normal; font-size: 11px; color: var(--ink-3); }
.mm-tag .hist li.more { justify-content: center; font-size: 11.5px; color: var(--ink-3); background: transparent; border-style: dashed; }
.mm-tag em { font-style: normal; font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.mm-hint { position: absolute; left: 6%; bottom: 2%; padding: 8px 12px; font-size: 12.5px; color: var(--ink-3); opacity: 0; transition: opacity .3s; }
.panel.live .mm-hint { opacity: 1; }
.view.no3d .mm-hint { visibility: hidden; }
.mm-tag[hidden] { display: none; }
.mm-tag small { font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin-top: 2px; }

/* STEP editing: the sentence that made the edit, and the feature diff it produced */
.mm-prompt { position: absolute; left: 50%; top: 0; transform: translateX(-50%); padding: 9px 16px; border-radius: 12px; background: var(--pill);
  border: 1px solid var(--pill-line); box-shadow: 0 8px 20px -12px var(--shadow); font-size: 13.5px; color: var(--ink); white-space: nowrap; min-height: 1.2em; }
.mm-prompt span::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--ink-2); opacity: 0; }
.mm-prompt.typing span::after { opacity: 1; }
.mm-prompt[hidden], .mm-diff[hidden] { display: none; }
.mm-diff { position: absolute; right: 4%; top: 22%; text-align: left; display: grid; gap: 4px; padding: 9px 11px; border-radius: 10px; background: var(--card);
  border: 1px solid var(--pill-line); box-shadow: 0 10px 24px -14px var(--shadow); opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; }
.mm-diff.on { opacity: 1; transform: none; }
.mm-diff small { font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.mm-diff ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; }
.mm-diff li { font-size: 11.5px; color: var(--ink-2); padding: 3px 7px; border-radius: 7px; background: var(--bg-hi); border: 1px solid var(--pill-line); white-space: nowrap; }
.mm-diff li b { font-weight: 500; color: var(--sage-strong); margin-right: 4px; }
.mm-diff li.mod b { color: var(--copper); }
.view.no3d .mm-prompt, .view.no3d .mm-diff { visibility: hidden; }
.chip[hidden] { display: none; }
.view.edit .tag-l, .view.edit .tag-r, .view.edit .arrow { visibility: hidden; }
.mm-diff li.now { background: var(--sage); border-color: transparent; color: var(--sage-ink); }
.mm-diff li.now b { color: var(--sage-ink); }
.mm-diff .note { font-style: normal; font-size: 11px; color: var(--ink-3); margin-top: 2px; }
/* Image-to-CAD: the input picture, read by a scan line */
.mm-photo { position: absolute; left: 6%; top: 14%; width: 34%; margin: 0; padding: 8px; border-radius: 14px; background: var(--pill); border: 1px solid var(--pill-line);
  box-shadow: 0 14px 30px -18px var(--shadow); overflow: hidden; --scan: 1; }
.mm-photo[hidden] { display: none; }
.mm-photo img { display: block; width: 100%; height: auto; border-radius: 8px; background: var(--line); }
.mm-photo figcaption { font-size: 11.5px; color: var(--ink-3); padding: 6px 2px 0; }
.mm-photo::after { content: ""; position: absolute; left: 8px; right: 8px; top: calc(8px + var(--scan) * 78%); height: 2px; background: var(--copper); box-shadow: 0 0 12px var(--copper); opacity: 0; transition: opacity .3s; }
.mm-photo.reading::after { opacity: 0.9; }
.view.no3d .mm-photo { visibility: hidden; }
/* a sketch step: a thumbnail of the real sketch */
.mm-tag .hist svg.thumb { width: 16px; height: 16px; stroke: var(--sage-strong); stroke-width: 2.6; fill: none; } /* the sketch itself as the step's icon */
/* every history step is one row of the same height */
.mm-tag .hist li { height: 28px; box-sizing: border-box; align-items: center; padding-top: 0; padding-bottom: 0; }
.mm-tag .hist li svg { margin-top: 0; }
.mm-tag .hist span { display: flex; align-items: center; }
/* masked tokens: each token is a mask block until its pass unmasks it */
.gen-code .cz { display: inline-block; }
.gen-code .cz-m { position: absolute; inset: 2px 0.5px; border-radius: 3px; background: var(--dim); opacity: .32; pointer-events: none; }
.gen-code .cz-m.hot { background: var(--copper); opacity: .45; }
.gen-code .cz.on .cz-m { opacity: 0; transition: opacity .16s linear; }
.mm-hint[hidden] { display: none; }
/* a part in close-up: its full design history pinned on the right */
.mm-tag.pinned { left: auto; right: 3%; top: 4%; transform: none !important; max-height: 92%; overflow: auto; pointer-events: auto; }
/* World environment: a clicked part's history, in the pane's free lower-left corner; the cell keeps running behind it */
.mm-tag.env-tag { left: 3%; right: auto; top: auto; bottom: 6%; max-height: 58%; pointer-events: none; z-index: 4; }
.view.focus .tag-l, .view.focus .tag-r, .view.focus .arrow, .view.focus .mm-prompt, .view.focus .mm-photo { visibility: hidden; }
.headline .hl { font-style: normal; font-weight: 500; color: var(--sage-strong); }
/* the headline catches the eye: a light sweeps across "World Model" and a CAD dimension line draws under the title, on
   load and again whenever the pointer comes to it */
.headline h1 .wm { font-size: 1.32em; line-height: 1.05; letter-spacing: -0.025em;
  /* it comes to rest as sage running into ink; on the way a copper light passes through the letters */
  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 h1 .wm { animation: wm-sweep2 2.2s cubic-bezier(0.45, 0, 0.25, 1) 1 both; }
@keyframes wm-sweep { from { background-position: 100% 0; } to { background-position: 0% 0; } }
@keyframes wm-sweep2 { from { background-position: 100% 0; } to { background-position: 0% 0; } }
.headline .dim { display: block; width: 72%; height: 12px; margin: 10px auto 0; overflow: visible; }
.headline .dim path { fill: none; stroke: var(--sage-strong); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.headline .dim .tip { fill: var(--sage-strong); stroke: none; transform-origin: center; animation: dim-tip 0.5s ease-out 1.9s both; }
.headline .dim .run { stroke-dasharray: 400; stroke-dashoffset: 400; animation: dim-draw 1.2s var(--ease-out) 0.9s both; }
.headline .dim .ext { opacity: 0; animation: dim-tip 0.4s ease-out 0.8s both; }
.headline:hover .dim .run { animation: dim-draw2 1s var(--ease-out) both; }
@keyframes dim-draw { to { stroke-dashoffset: 0; } }
@keyframes dim-draw2 { from { stroke-dashoffset: 400; } to { stroke-dashoffset: 0; } }
@keyframes dim-tip { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .headline h1 .wm, .headline .dim * { animation: none !important; } .headline h1 .wm { background-position: 0 0; } .headline .dim .run { stroke-dashoffset: 0; } .headline .dim .ext, .headline .dim .tip { opacity: 1; } }
/* two arcs out of the headline: from above the title round to the left panel, from under the caption round to the right */
.headline .arc { position: absolute; width: 42%; aspect-ratio: 520 / 150; overflow: visible; pointer-events: none; }
.headline .arc path { fill: none; stroke: var(--ink-3); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.headline .arc marker path { fill: var(--ink-3); stroke: none; }
.headline .arc-l { left: 1%; bottom: calc(100% + 10px); }
.headline .arc-r { left: 55%; top: calc(100% - 2px); }
/* the Diffusion close-up loop: the token card sits where it does not cover the part (set from the part's place on screen) */
.diff-tree.at, .diff-tree.at.in { right: auto; left: 0; top: 0; transform: translate(var(--cx, 0px), var(--cy, 0px));
  transition: opacity .5s var(--ease-out), filter .5s var(--ease-out), transform .9s var(--ease-out); }
/* the token card's state mark: a turning ring while it generates, a tick when it is done */
.diff-tree.gen h3 { align-items: center; gap: 8px; white-space: nowrap; }
.gen-state { flex: none; width: 14px; height: 14px; display: block; }
.gen-state svg { display: block; width: 100%; height: 100%; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gen-state .ring { stroke: var(--copper-soft); stroke-dasharray: 26 12; transform-origin: 8px 8px; animation: gen-turn .9s linear infinite; }
.gen-state .tick { stroke: var(--sage-strong); stroke-width: 2.3; stroke-dasharray: 12; stroke-dashoffset: 12; }
.gen-state.done .ring { animation: none; opacity: 0; transition: opacity .2s linear; }
.gen-state.done .tick { stroke-dashoffset: 0; transition: stroke-dashoffset .3s var(--ease-out) .1s; }
@keyframes gen-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gen-state .ring { animation: none; } }
/* World environment: the growing reward curve under the title, and the step named on the rig */
.reward { margin: 8px 0 0 auto; width: 90%; text-align: left; }
.reward #gym-stream { height: 92px; margin: 4px 0 0; }
#gym-stream .ra { fill: url(#rg); stroke: none; }
#gym-stream .rg0 { stop-color: var(--sage-strong); stop-opacity: .3; } #gym-stream .rg1 { stop-color: var(--sage-strong); stop-opacity: 0; }
#gym-stream .rm { stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
#gym-stream .rp, #gym-stream .rf { opacity: .45; }
#gym-stream .rt { fill: var(--sage-strong); }
#gym-stream .rh { fill: var(--sage-strong); opacity: .22; }
.env-step { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); margin: 0; display: flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--pill-line); font-size: 12.5px; color: var(--ink-2); box-shadow: 0 10px 24px -14px var(--shadow); }
.env-step:empty { display: none; }
.env-step i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.env-step b { font-weight: 500; color: var(--ink); }
.env-step span { font-variant-numeric: tabular-nums; color: var(--ink-3); }
.env-step[data-p="break"] i { background: var(--copper); } .env-step[data-p="break"] span { color: var(--copper-soft); }
.env-step[data-p="edit"] i { background: var(--lav); }
.env-step[data-p="verify"] i { background: var(--sage-strong); } .env-step[data-p="verify"] span { color: var(--sage-strong); }
/* the reward graph: one smooth curve from negative (copper) to positive (sage), against a +/- axis */
#gym-stream .g-pos { stop-color: var(--sage-strong); } #gym-stream .g-mid { stop-color: var(--amber); } #gym-stream .g-neg { stop-color: var(--copper); }
#gym-stream .rc { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
#gym-stream .ax { stroke: var(--rule-2); stroke-width: 1; } #gym-stream .ax.zero { stroke-dasharray: 2 4; }
#gym-stream .axt { font: 500 13px/1 Inter, system-ui, sans-serif; fill: var(--ink-3); text-anchor: middle; }
#gym-stream .axl { font: 400 10px/1 Inter, system-ui, sans-serif; fill: var(--ink-3); text-anchor: start; letter-spacing: .02em; }
#gym-stream .rt.neg, #gym-stream .rh.neg { fill: var(--copper); }
/* the reward as in a training run: the raw reward faint, its smoothed mean bold */
#gym-stream .rr { fill: none; stroke-width: 1; opacity: .42; stroke-linejoin: round; }
.reward .gym-head:empty { display: none; }
/* World environment: a caption that fades in beside the arm while a step is under way and fades out again */
.env-note { position: absolute; left: 3%; top: 8%; z-index: 3; margin: 0; display: flex; align-items: center; gap: 9px; padding: 8px 14px 8px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--pill-line); box-shadow: 0 12px 28px -14px var(--shadow);
  font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); opacity: 0; pointer-events: none; white-space: nowrap; }
.env-note::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); flex: none; }
.env-note.show { animation: note-fade 1.8s var(--ease-out) both; }
.env-note[data-k="bad"] { color: var(--copper-soft); } .env-note[data-k="bad"]::before { background: var(--copper); }
.env-note[data-k="ok"] { color: var(--sage-strong); } .env-note[data-k="ok"]::before { background: var(--sage-strong); }
.env-note[data-k="edit"]::before { background: var(--lav); }
@keyframes note-fade { 0% { opacity: 0; transform: translateY(8px); } 10% { opacity: 1; transform: none; } 82% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .env-note.show { animation: none; opacity: 1; } }
/* the top bar: Gallery (not open yet: a click shows "Coming soon" under it for a moment) and the theme switch */

/* every 3D canvas fades out at its four edges, so a close-up that reaches them never ends on a hard line */
.view canvas, .diff-view canvas {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
/* a scene that fills its canvas to the edges (the flow): wider fade bands */
.view canvas.feather {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 17%, #000 83%, transparent 100%), linear-gradient(180deg, transparent 0, #000 12%, #000 76%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 17%, #000 83%, transparent 100%), linear-gradient(180deg, transparent 0, #000 12%, #000 76%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}

/* the reward plot sits straight on the page: no card behind it and no Training badge (RyzenX). The doubled classes
   outrank the showcase stylesheet's card rules, which load after this file */
.lab-hero .panel.p-right .reward.reward { background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.lab-hero .panel.p-right .reward.reward::after { content: none; animation: none; }

/* Fluid simulation: what Glim is changing, as notes pinned to the part, and the stage the loop is in */
.flow-notes { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.flow-note { position: absolute; width: 0; height: 0; opacity: 0; transition: opacity .45s; }
.flow-note.on { opacity: 1; }
.flow-note i { position: absolute; left: -3.5px; top: -3.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--sage-strong); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage-strong) 28%, transparent); }
.flow-note i::after { content: ""; position: absolute; left: 3px; top: 3px; height: 1px; width: calc(hypot(var(--ox), var(--oy)) - 6px); background: var(--sage-strong); opacity: .7; transform-origin: 0 50%; rotate: atan2(var(--oy), var(--ox)); }
.flow-note b { position: absolute; left: var(--ox); top: var(--oy); translate: -100% -50%; display: grid; gap: 2px; padding: 8px 13px; border-radius: 12px; border: 1px solid var(--pill-line); background: var(--pill); color: var(--ink);
  font: 600 13px/1.25 "Inter", sans-serif; white-space: nowrap; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 8px 20px -14px var(--shadow); }
.flow-note small { font: 400 11.5px/1.35 "Inter", sans-serif; color: var(--ink-2); white-space: normal; width: 168px; }
@media (max-width: 900px) { .flow-note b { white-space: normal; width: 150px; } }

/* Motion studies: the hand's motions as names floating on two arcs round it; the one playing is lit */
@property --fx { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --fy { syntax: "<length>"; inherits: false; initial-value: 0px; }
.hand-labels { position: absolute; inset: 0; z-index: 3; pointer-events: none; transition: opacity .35s; }
.hand-label { position: absolute; pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 6px 10px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  border: 1px solid color-mix(in srgb, var(--ink) 9%, transparent); background: color-mix(in srgb, var(--bg-hi) 62%, transparent); color: var(--ink-2);
  font: 500 13px/1.15 "Inter", sans-serif; letter-spacing: .005em; -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: 0 1px 0 color-mix(in srgb, #fff 22%, transparent) inset, 0 10px 24px -16px var(--shadow);
  translate: var(--fx) var(--fy);
  /* two slow drifts of different lengths, so no chip repeats its path in step with a neighbour; and a soft arrival */
  animation: hand-fy var(--dy, 7s) ease-in-out var(--d, 0s) infinite, hand-fx var(--dx, 10s) ease-in-out var(--d, 0s) infinite, hand-in .7s cubic-bezier(.2, .7, .2, 1) var(--in, 0s) backwards;
  transition: background .3s, color .3s, border-color .3s, box-shadow .3s, scale .3s cubic-bezier(.2, .7, .2, 1); }
.hand-label i { width: 6px; height: 6px; border-radius: 50%; background: color-mix(in srgb, var(--sage-strong) 55%, transparent); transition: background .3s, box-shadow .3s, scale .3s; }
.hand-label:hover { color: var(--ink); border-color: color-mix(in srgb, var(--sage-strong) 60%, transparent); scale: 1.045; }
.hand-label:hover i { background: var(--sage-strong); scale: 1.25; }
.hand-label.on { background: var(--sage-strong); color: var(--sage-strong-ink); border-color: transparent; scale: 1.06;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--sage-strong) 18%, transparent), 0 14px 28px -14px color-mix(in srgb, var(--sage-strong) 70%, transparent); }
.hand-label.on i { background: var(--sage-strong-ink); box-shadow: 0 0 0 0 var(--sage-strong-ink); animation: hand-beat 1.6s ease-out infinite; }
.hand-labels.away { opacity: 0; pointer-events: none; }
.hand-labels.away .hand-label { pointer-events: none; }
.hand-label:focus-visible { outline: 2px solid var(--sage-strong); outline-offset: 3px; }
@keyframes hand-fy { 0%, 100% { --fy: 3px; } 50% { --fy: -5px; } }
@keyframes hand-fx { 0%, 100% { --fx: -3px; } 50% { --fx: 4px; } }
@keyframes hand-in { from { opacity: 0; filter: blur(6px); scale: .92; } }
@keyframes hand-beat { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--sage-strong-ink) 55%, transparent); } 100% { box-shadow: 0 0 0 7px transparent; } }
@media (prefers-reduced-motion: reduce) { .hand-label, .hand-label.on i { animation: none; } }

/* ---------- desktop: room for the two lower panes, so title, subtitle, card and model never overlap ---------- */
@media (min-width: 901px) {
  /* Diffusion: the machine starts under the subtitle, not behind it */
  .lab-hero .p-left .diff-view { top: 88px; }
  /* World environment: the arm's canvas spans the pane under the subtitle, so the robot has the whole width to move in;
     the small reward plot sits over its top left corner */
  .lab-hero .p-right .reward { width: clamp(190px, 32%, 220px); margin: 16px auto 0 0; }
  .lab-hero .p-right .view { left: 20%; width: 80%; top: 112px; bottom: 1%; }
}

/* ---------- phones and narrow windows (kept last, so it wins over every pane rule above) ---------- */
@media (max-width: 900px) {
  /* a phone or a narrow window: one column, headline first, then the three panes in turn */
  .stage { height: auto; display: grid; gap: 44px; padding: 92px 16px 48px; }
  .dividers, .headline .arc { display: none; }
  .panel, .headline { position: relative; inset: auto; width: auto; height: auto; transform: none; text-align: left; }
  .headline { order: -1; text-align: center; }
  .nav { padding: 16px; }
  .brand { font-size: 19px; gap: 10px; }
  .brand img { width: 26px; height: 26px; }
  .p-top .wheel { width: 100%; }
  .p-top .view { position: relative; left: auto; width: 100%; height: min(64vw, 300px); top: auto; bottom: auto; }
  .p-right .view { position: relative; left: auto; width: 100%; height: min(92vw, 400px); top: auto; bottom: auto; }
  .p-right h2, .p-left h2 { margin: 0; }
  .p-left .sub { margin-left: 0; }
  .reward { width: 100%; }
  /* Diffusion: the machine in its own square, the card under it (never over it, there is no room beside) */
  .p-left .diff-view { position: relative; left: auto; right: auto; top: auto; bottom: auto; height: auto; margin-top: 6px; }
  .p-left .diff-view canvas { height: min(86vw, 380px);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 88%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 88%, transparent 100%);
    -webkit-mask-composite: source-in; mask-composite: intersect; }
  .p-left .diff-tree, .p-left .diff-tree.in, .p-left .diff-tree.at, .p-left .diff-tree.at.in, .p-left .diff-tree:not(.at), .p-left .diff-tree.in:not(.at) {
    position: relative; left: auto; right: auto; top: auto; bottom: auto; transform: none; margin: -18px 0 0 auto; width: fit-content; max-width: 100%; }
  .p-left .card, .inset { position: relative; width: 60%; margin: 12px auto 0; right: auto; top: auto; }
  .env-bar { justify-content: flex-start; margin: 12px 0 0; }
  .hand-labels { inset: auto 0 0 0; display: flex; gap: 8px; overflow-x: auto; padding: 8px 12px 6px; pointer-events: auto; scrollbar-width: none; }
  .hand-label { position: static; animation: none; flex: none; translate: none; }
}

/* loading skeletons (lab-skeleton.js): each 3D pane's model as a grey silhouette that shimmers while it waits and fills
   left to right with its download, then cross-fades into the canvas. Its own box follows the canvas (set in JS); the
   silhouette is a mask sized to the canvas height, as the cameras keep their vertical field of view */
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; } /* the fill glides between progress reports */
.skel { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none;
  --p: 0; --skel-base: color-mix(in srgb, var(--ink) 13%, transparent); --skel-fill: color-mix(in srgb, var(--ink) 30%, transparent);
  --skel-shine: color-mix(in srgb, var(--bg-hi) 40%, transparent);
  background: linear-gradient(90deg, var(--skel-fill) 0 calc(var(--p) * 100%), var(--skel-base) calc(var(--p) * 100% + 3%));
  /* the silhouette, cut by the same soft edges as the canvas it stands in for */
  -webkit-mask-image: var(--skel), linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 88%, transparent 100%);
  mask-image: var(--skel), linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 88%, transparent 100%);
  -webkit-mask-size: auto var(--skel-h, 100%), 100% 100%, 100% 100%; mask-size: auto var(--skel-h, 100%), 100% 100%, 100% 100%;
  -webkit-mask-position: center; mask-position: center; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-composite: source-in; mask-composite: intersect;
  transition: opacity .7s var(--ease-out), --p .5s ease-out; }
.skel::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 50%;
  background: linear-gradient(105deg, transparent 20%, var(--skel-shine) 50%, transparent 80%);
  animation: skel-shine 1.6s cubic-bezier(.4, 0, .2, 1) infinite; }
@keyframes skel-shine { from { transform: translateX(-100%); } to { transform: translateX(200%); } }
.skel.out { opacity: 0; }
/* the pane could not be built (an error, no WebGL, its script missing): a still picture of the model in the same place,
   within the same soft edges, and no shimmer */
.skel.poster { background: var(--skel-poster) center / auto var(--skel-h, 100%) no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 88%, transparent 100%);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.skel.poster::after { content: none; }
.view.no3d .skel { visibility: hidden; } /* the wheel moved on to a scene with no 3D view */
.skel-wait canvas { opacity: 0; }
.view canvas, .diff-view canvas { transition: opacity .8s var(--ease-out); }
[data-theme="dark"] .skel { --skel-base: color-mix(in srgb, var(--ink) 9%, transparent); --skel-fill: color-mix(in srgb, var(--ink) 24%, transparent);
  --skel-shine: color-mix(in srgb, var(--ink) 16%, transparent); }
@media (prefers-reduced-motion: reduce) { .skel::after { animation: none; opacity: 0; } }
