/* The entrance uses transform. Keep the subsequent idle float independent of it. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero .stage__product { animation: iflow-float 12s ease-in-out 1.25s infinite; }
  @keyframes iflow-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -3px; }
  }
}

/* The right-hand chip grows towards the camera from its position near the edge. */
.hero .hud--r .hud__chip { right:-16px; }
@media (max-width:560px) {
  .hero .stage__product + .hud .hud__chip { bottom:5px; }
  .hero .hud__chip { padding:6px 10px; }
}

.mx-section {
  --mx-line: #343638; --mx-muted: #b4b6b7; --mx-accent: #ff925e;
  position: relative; padding: clamp(58px,6.2vw,92px) 0; background: #101113; color: #f8f7f4;
  scroll-margin-top: 70px;
}
.mx-section [hidden] { display: none !important; }
.mx-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.mx-heading .eyebrow { font: 600 12px/1.4 var(--f-mono,monospace); color: var(--mx-accent); letter-spacing: .08em; text-transform: uppercase; }
.mx-heading h2 { font: 560 clamp(32px,3.9vw,58px)/1.03 var(--f-display,Onest,sans-serif); margin: 10px 0 0; letter-spacing: -.052em; text-wrap: balance; }
.mx-link, .mx-foot { color: #f0ede8; text-decoration: none; }
.mx-link { font-size: 14px; font-weight: 600; white-space: nowrap; padding: 10px 0; }
@media (min-width:641px) {
  .mx-lab[data-start-case="brightvu"] { scroll-margin-top:148px; }
}
.mx-lab { display: grid; grid-template-columns: minmax(240px,.46fr) minmax(0,1fr); border-radius: 17px; border: 1px solid var(--mx-line); background: #191b1d; overflow: hidden; scroll-margin-top: 90px; }
.mx-choices { background: #161719; padding: 14px; border-right: 1px solid var(--mx-line); display: flex; flex-direction: column; justify-content: center; gap: 7px; }
.mx-choices button { position: relative; display: grid; gap: 7px; width: 100%; padding: clamp(14px,2vw,26px) 15px; text-align: left; background: transparent; color: #c5c6c7; border: 1px solid transparent; border-radius: 10px; cursor: pointer; }
.mx-choices button[aria-pressed=true] { border-color: #635042; background: #292521; color: #fff; }
.mx-choices button[aria-pressed=true]::before { content: ""; position: absolute; width: 3px; height: 25px; top: calc(50% - 12px); left: -1px; background: var(--mx-accent); border-radius: 3px; }
.mx-choices button:hover { background-color: #242526; }
.mx-choices small { font: 550 12px/1.35 var(--f-mono,monospace); }
.mx-choices small { color: #b7b8b9; }
.mx-choices button[aria-pressed=true] small { color: var(--mx-accent); }
.mx-choices strong { font: 590 clamp(17px,1.65vw,25px)/1.1 var(--f-display,Onest,sans-serif); letter-spacing: -.035em; }
.mx-panel { min-width: 0; align-self: start; }
.mx-stage { position: relative; isolation: isolate; width: 100%; aspect-ratio: 1344/752; overflow: hidden; background: #26282a; }
.mx-stage > img { display: block; width: 100%; height: 100%; object-fit: fill; }
.mx-night { background:#202021; }
.mx-stage.mx-night > img { filter:grayscale(1) brightness(.79) contrast(1.04); }
.mx-stage.mx-night[data-tone="colour"] > img { filter:none; }
.mx-night-colour { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.mx-night:not([data-tone="mix"]) .mx-night-colour { visibility:hidden; }
.mx-night-mode {
  position:absolute; inset:12px 12px auto auto; display:inline-flex; align-items:center; gap:7px;
  padding:6px 9px; border:1px solid #ffffff30; border-radius:5px; color:#f1eee8;
  background:#141719da; font:500 11px/1.25 var(--f-mono,monospace);
}
.mx-night-mode::before { content:""; width:7px; height:7px; border-radius:50%; background:#b6bbc0; }
.mx-night[data-tone="mix"] .mx-night-mode::before { background:linear-gradient(90deg,#b6bbc0 50%,#ffaf70 50%); }
.mx-night[data-tone="colour"] .mx-night-mode::before { background:#ffaf70; }
.mx-night-seek {
  display:flex; gap:12px; align-items:center; padding:1px 20px; background:#151719;
  border-bottom:1px solid var(--mx-line); color:#ddd9d1; font:500 11px/1.3 var(--f-mono,monospace);
}
.mx-night-seek input {
  appearance:none; -webkit-appearance:none; flex:1; min-width:0; height:44px; margin:0;
  background:transparent; cursor:pointer; touch-action:pan-y;
}
.mx-night-seek input::-webkit-slider-runnable-track {
  height:3px; border-radius:3px;
  background:linear-gradient(to right,#ffb27d var(--night-fill,0%),#565859 var(--night-fill,0%));
}
.mx-night-seek input::-moz-range-track { height:3px; background:#565859; }
.mx-night-seek input::-moz-range-progress { height:3px; background:#ffb27d; }
.mx-night-seek input::-webkit-slider-thumb {
  appearance:none; -webkit-appearance:none; width:15px; height:15px; margin-top:-6px; border-radius:50%;
  background:#efe8dd; border:3px solid #191b1d; box-shadow:0 0 0 1px #a59c93;
}
.mx-night-seek input::-moz-range-thumb { box-sizing:border-box; width:15px; height:15px; border-radius:50%; background:#efe8dd; border:3px solid #191b1d; box-shadow:0 0 0 1px #a59c93; }
.mx-night-seek input:focus-visible { outline:2px solid #ffb27d; outline-offset:-2px; border-radius:5px; }
#night-run { min-width:10em; }
.mx-source, .mx-box b { padding:5px 8px; color:#fff; background:#151719e6; border-radius:5px; font:550 12px/1.25 var(--f-body,Onest,sans-serif); }
.mx-source { position: absolute; left: 12px; top: 12px; }
.mx-box { position: absolute; border: 2px solid #ff964b; background: #ff701016; }
.mx-box b { position: absolute; bottom: 100%; left: -2px; white-space: nowrap; background: #562b0c; color: white; }
.mx-filter.is-filtered .mx-animal { border: 1px dashed #cdd4cd; background: #545c5d10; }
.mx-filter.is-filtered .mx-animal b { background: #47514c; }
.mx-console { padding: 17px 20px 13px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.mx-console h3 { margin: 0; color: #f8f7f4; font: 590 21px/1.18 var(--f-display,Onest,sans-serif); letter-spacing: -.035em; }
.mx-console p { margin: 6px 0 0; color: #bfc2c4; font-size: 14px; line-height: 1.48; max-width: 56ch; }
.mx-action { appearance: none; border-radius: 9px; padding: 11px 14px; min-height: 42px; font: 600 14px/1.2 var(--f-body,Onest,sans-serif); cursor: pointer; }
.mx-action { border: 1px solid #e7e4df; color: #151618; background: #ebe9e5; flex-shrink: 0; }
.mx-action:hover { background: #fff; }
.mx-foot { margin: 0 20px 16px; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--mx-accent); }
.mx-hits { display: grid; grid-template-columns: repeat(4,1fr); padding: 0 20px 14px; gap: 5px; }
.mx-hits button { text-align: left; border: 1px solid #414448; border-radius: 6px; background: #202225; padding: 7px 8px; color: #d6d5d1; display:grid; gap:2px; cursor:pointer; font:550 13px var(--f-body,Onest,sans-serif); }
.mx-hits button[aria-pressed=true] { color: #fff; border-color: var(--mx-accent); }
.mx-hits small { font: 500 11px/1.3 var(--f-mono,monospace); }
.mx-section :is(a,button,select):focus-visible { outline:3px solid #ffba7c; outline-offset:-3px; }
@media (prefers-reduced-motion:no-preference) {
 .mx-choices button, .mx-animal { transition: background-color .18s ease-out, opacity .18s ease-out, border-color .18s ease-out; }
 .mx-panel:not([hidden]), .mx-hits:not([hidden]) { animation: mx-appear .21s ease-out both; }
 @keyframes mx-appear { from {opacity:.5;} to {opacity:1;} }
}
@media(max-width:900px) {
 .mx-lab { grid-template-columns: minmax(180px,.4fr) minmax(0,1fr); }
 .mx-choices { padding:8px; }
 .mx-console { flex-wrap:wrap; gap:9px; }
}
@media(max-width:640px) {
 .mx-section { padding:42px 0; scroll-margin-top:66px; }
 .mx-heading { display:block; margin-bottom:14px; }
 .mx-link { display:inline-block; padding:8px 0 0; }
 .mx-lab { display:block; }
 .mx-choices { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); padding:4px; gap:2px; border:0; border-bottom:1px solid var(--mx-line); }
 .mx-choices button { border-radius:7px; padding:9px 5px; align-content:start; gap:4px; }
 .mx-choices small { font-size:10px; }
 .mx-choices strong { font-size:14px; line-height:1.18; letter-spacing:-.025em; }
 .mx-choices button[aria-pressed=true]::before { top:auto; bottom:0; left:7px; height:2px; width:22px; }
 .mx-console { padding:13px; }
 .mx-foot { margin:0 13px 13px; min-height:30px; }
 .mx-console h3 { font-size:18px; }
 .mx-night-seek { padding:0 13px; }
 .mx-night-mode,.mx-source,.mx-box b { font-size:10px; padding:4px 5px; }

 .mx-hits { gap:3px; padding:0 13px 10px; }
 .mx-hits button { padding:7px 3px; font-size:12px; min-height:44px; }
 .mx-hits small { font-size:10px; }
}

.mx-archive .mx-source {
  top: 3%; left: 2.4%; border: 1px solid #ffffff36; padding: 6px 9px;
  color: #fff8ee; background: #141717dc; font: 500 clamp(10px,1vw,13px)/1.2 var(--f-mono,monospace);
}
#archive-box {
  --corner: #ffb373;
  --h: linear-gradient(var(--corner),var(--corner)) no-repeat;
  border: 0; background: var(--h) left top / 29% 2px,var(--h) right top / 29% 2px,
    var(--h) left bottom / 29% 2px,var(--h) right bottom / 29% 2px,
    var(--h) left top / 2px 13%,var(--h) right top / 2px 13%,
    var(--h) left bottom / 2px 13%,var(--h) right bottom / 2px 13%;
  filter: drop-shadow(0 1px 2px #0009);
}
#archive-box b { left: 0; margin-bottom: 4px; border-radius: 3px; background: #211810df; color: #ffcf9d; font-size: clamp(8px,.78vw,11px); }
.mx-hits { --gap: 7px; position: relative; margin: 2px 20px 15px; padding: 0 0 5px; gap: var(--gap); border-bottom: 1px solid #404144; }
.mx-hits::after {
  content:""; position: absolute; bottom:-1px; left:0; height:2px; width:calc((100% - 3 * var(--gap)) / 4);
  background: #ffa96d; transform:translateX(calc(var(--active-hit, 0) * (100% + var(--gap)))); pointer-events:none;
}
.mx-hits button {
  position:relative; isolation:isolate; min-width:0; min-height:58px; height:clamp(58px,5vw,78px);
  overflow:hidden; align-content:end; gap:1px; padding:5px 8px; border:1px solid transparent;
  border-radius:5px; background:#252a2e; color:#fff;
}
.mx-hits button img, .mx-hits button::before { position:absolute; inset:0; width:100%; height:100%; z-index:-1; }
.mx-hits button img { object-fit:cover; opacity:.73; }
.mx-hits button::before { content:""; background:linear-gradient(0deg,#0b0c0eea, #10111360 59%,transparent); }
.mx-hits button img { z-index:-2; }
.mx-hits button[aria-pressed=true] { border-color:#d69d73; }
.mx-hits button[aria-pressed=true] img,.mx-hits button:hover img { opacity:1; }
.mx-hits button small { color:#eee8df; font-variant-numeric:tabular-nums; }
.mx-section #archive-run { min-width:10.3em; }
@media (prefers-reduced-motion:no-preference) { .mx-hits::after { transition:transform .36s cubic-bezier(.23,.83,.22,1); } }
@media (max-width:640px) {
  .mx-hits { --gap:4px; margin:0 13px 11px; }
  .mx-hits button { padding:4px; }
}
