/* ==========================================================================
   Srusan — Minnal page, the moving parts (assets/js/minnal-x.js)
   ========================================================================== */

/* ── 1. hero console ── */
.mx-console {
  --c-bg: rgba(18, 18, 16, .72); --c-line: rgba(240, 239, 234, .12); --c-ink: #f0efea; --c-dim: rgba(240, 239, 234, .55);
  position: relative; z-index: 2; margin: clamp(28px, 4vw, 52px) auto 0; width: 100%; max-width: 1040px;
  background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 18px; overflow: hidden;
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .05);
  color: var(--c-ink); font-family: var(--f-body);
}
.mx-bar { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-bottom: 1px solid var(--c-line); font: 12px var(--f-mono); color: var(--c-dim); }
.mx-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(240, 239, 234, .16); }
.mx-bar i:first-child { background: #ff5f57; } .mx-bar i:nth-child(2) { background: #febc2e; } .mx-bar i:nth-child(3) { background: #28c840; }
.mx-bar span { margin-left: 8px; } .mx-proc { margin-left: auto !important; color: var(--c-ink); opacity: .7; }
.mx-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 0; }
.mx-left { padding: 18px 20px 20px; border-right: 1px solid var(--c-line); min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.mx-prompt { font: 15px/1.5 var(--f-body); min-height: 3em; }
.mx-you { display: inline-block; font: 600 10.5px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #0b0b0a;
  background: #ff3b2f; border-radius: 5px; padding: 2px 6px; margin-right: 8px; vertical-align: 2px; }
.mx-caret { display: inline-block; width: 8px; height: 1.05em; background: #ff3b2f; margin-left: 2px; vertical-align: -2px; animation: mxBlink 1s steps(2) infinite; }
.mx-console.busy .mx-caret, .mx-console.done .mx-caret { opacity: 0; animation: none; }
@keyframes mxBlink { 50% { opacity: 0; } }
.mx-run { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mx-sa { width: 32px; height: 15px; flex: none; color: #ff3b2f; opacity: .35; }
.mx-sa svg { width: 100%; height: 100%; fill: currentColor; overflow: visible; }
.mx-console.busy .mx-sa { opacity: 1; } .mx-console.busy .mx-sa path { animation: mxPulse 1.4s ease-in-out infinite; }
.mx-console.busy .mx-sa path:nth-child(2) { animation-delay: .35s; }
.mx-console.done .mx-sa { opacity: 1; }
@keyframes mxPulse { 0%, 100% { opacity: .25; } 45% { opacity: 1; } }
.mx-lbl { flex: 1; min-width: 0; font: 600 13.5px var(--f-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-console.done .mx-lbl { white-space: normal; }
.mx-t { font: 12px var(--f-mono); color: var(--c-dim); font-variant-numeric: tabular-nums; }
.mx-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font: 12px var(--f-mono); }
.mx-steps li { display: grid; grid-template-columns: 12px 1fr auto; gap: 9px; align-items: center; color: var(--c-dim); transition: color .3s; }
.mx-steps li i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid rgba(240, 239, 234, .3); transition: .3s; }
.mx-steps li.on { color: var(--c-ink); } .mx-steps li.on i { border-color: #ff3b2f; background: #ff3b2f; box-shadow: 0 0 0 4px rgba(255, 59, 47, .18); }
.mx-steps li.done { color: var(--c-ink); } .mx-steps li.done i { background: #2fbf71; border-color: #2fbf71; }
.mx-steps b { font-weight: 500; font-variant-numeric: tabular-nums; }
.mx-note { margin: auto 0 0; font: 11.5px var(--f-mono); color: var(--c-dim); min-height: 1.4em; }
.mx-card { position: relative; padding: 16px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 150px 150px auto auto; gap: 10px; min-width: 0; min-height: 420px; }
.mx-card > * { opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .6s cubic-bezier(.2, .7, .2, 1); }
.mx-card.show .mx-sch { opacity: 1; transform: none; }
.mx-card.lay-in .mx-lay, .mx-card.lay-in .mx-plot { opacity: 1; transform: none; }
.mx-card.tiles-in .mx-tiles, .mx-card.tiles-in .mx-pvt { opacity: 1; transform: none; }
.mx-sch, .mx-lay, .mx-plot { border: 1px solid var(--c-line); border-radius: 12px; overflow: hidden; background: rgba(240, 239, 234, .04); min-width: 0; }
.mx-sch { grid-row: 1 / 3; background: #f4f3ef; }
.mx-sch svg, .mx-lay svg { width: 100%; height: 100%; display: block; }
.mx-sch svg { padding: 8px; box-sizing: border-box; }
.mx-lay { background: #0e0e0d; } .mx-lay svg { padding: 6px; box-sizing: border-box; }
.mx-plot canvas { width: 100%; height: 100%; display: block; }
.mx-tiles { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mx-tile { border: 1px solid var(--c-line); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.mx-tile span { display: block; font: 10.5px var(--f-mono); color: var(--c-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-tile b { font: 650 20px/1.2 var(--f-display); letter-spacing: -.02em; } .mx-tile small { font: 500 11px var(--f-mono); margin-left: 3px; color: var(--c-dim); }
.mx-pvt { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.mx-c { font: 11px var(--f-mono); padding: 4px 9px; border-radius: 99px; border: 1px solid var(--c-line, rgba(11, 11, 10, .14)); color: var(--c-dim, #6f6d68); transition: .35s; }
.mx-c.lit.ok { background: rgba(47, 191, 113, .16); border-color: rgba(47, 191, 113, .55); color: #2fbf71; }
.mx-c.lit:not(.ok) { background: rgba(255, 59, 47, .14); border-color: rgba(255, 59, 47, .5); color: #ff3b2f; }
@media (max-width: 860px) {
  .mx-body { grid-template-columns: 1fr; } .mx-left { border-right: 0; border-bottom: 1px solid var(--c-line); }
  .mx-card { grid-template-rows: 140px 140px auto auto; min-height: 0; }
}
@media (max-width: 520px) { .mx-card { grid-template-columns: 1fr; grid-template-rows: 160px 120px 140px auto auto; } .mx-sch { grid-row: auto; } .mx-tiles { grid-template-columns: 1fr 1fr; } }

/* ── 3D planes (shared) ── */
.mx-stack { --gap: 6px; position: relative; width: 100%; aspect-ratio: 56.7 / 23.2; transform-style: preserve-3d; transition: transform .12s linear; }
.mx-plane { position: absolute; inset: 0; transform: translateZ(calc(var(--i) * var(--gap) + var(--gap))); transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), opacity .3s, filter .3s; pointer-events: none; }
.mx-plane svg { width: 100%; height: 100%; display: block; overflow: visible; }
.mx-base { transform: translateZ(0); background: radial-gradient(120% 90% at 50% 50%, rgba(255, 255, 255, .06), transparent 70%);
  border: 1px solid rgba(240, 239, 234, .14); border-radius: 6px; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .8); }

/* ── 3. 3D chip ── */
.mx-chip { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 20px; align-items: center; }
.mx-chip-scene { position: relative; perspective: 1100px; perspective-origin: 50% 40%; aspect-ratio: 1.45; display: grid; place-items: center; cursor: grab; touch-action: pan-y;
  border-radius: 18px; background: radial-gradient(80% 70% at 50% 45%, rgba(255, 59, 47, .08), transparent 70%); }
.mx-chip-scene:active { cursor: grabbing; }
.mx-chip-scene .mx-stack { width: 70%; }
.mx-chip.solo .mx-plane:not(.hi):not(.mx-base) { opacity: .08; }
.mx-plane.hi { filter: drop-shadow(0 0 10px var(--c)); }
.mx-chip-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mx-chip-side p { margin: 0; font-size: 13.5px; color: rgba(240, 239, 234, .65); }
.mx-chip-legend { display: grid; gap: 3px; }
.mx-chip-legend button { display: flex; align-items: center; gap: 9px; padding: 5px 8px; border: 0; border-radius: 8px; background: transparent;
  color: rgba(240, 239, 234, .78); font: 12.5px var(--f-mono); text-align: left; cursor: pointer; }
.mx-chip-legend button:hover, .mx-chip-legend button:focus-visible { background: rgba(240, 239, 234, .07); color: #f0efea; }
.mx-chip-legend i { width: 12px; height: 12px; border-radius: 3px; background: var(--c); flex: none; box-shadow: inset 0 0 0 1px rgba(240, 239, 234, .35); }
.mx-chip-explode { align-self: flex-start; font: 600 13px var(--f-body); padding: 9px 14px; border-radius: 99px; border: 1px solid rgba(240, 239, 234, .3);
  background: transparent; color: #f0efea; cursor: pointer; }
.mx-chip-explode[aria-pressed="true"] { background: #f0efea; color: #0b0b0a; }
@media (max-width: 860px) { .mx-chip { grid-template-columns: 1fr; } .mx-chip-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── 4. playground ── */
.mx-play { margin-top: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(16px, 2.5vw, 32px);
  background: var(--paper-2, #ebe9e3); border-radius: 20px; padding: clamp(16px, 2.4vw, 28px); }
.mx-play-plot { position: relative; min-width: 0; }
.mx-play-plot canvas { width: 100%; height: clamp(240px, 30vw, 360px); display: block; }
.mx-play-leg { display: flex; gap: 16px; font: 11.5px var(--f-mono); color: var(--ink-2); margin-top: 6px; }
.mx-play-leg i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.mx-play-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.mx-play-side label { font: 600 11.5px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); display: flex; justify-content: space-between; }
.mx-play-cc { width: 100%; accent-color: #ff3b2f; height: 28px; cursor: pointer; }
.mx-play-corners { display: flex; flex-wrap: wrap; gap: 6px; }
.mx-play-corners button { font: 12px var(--f-mono); padding: 6px 10px; border-radius: 99px; border: 1px solid rgba(11, 11, 10, .2); background: transparent; color: var(--ink); cursor: pointer; }
.mx-play-corners button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.mx-play-read { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mx-play-read div { background: var(--paper, #f4f3ef); border-radius: 12px; padding: 10px 12px; }
.mx-play-read span { display: block; font: 10.5px var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.mx-play-read b { font: 650 24px/1.2 var(--f-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mx-v-verdict { font: 600 14px var(--f-body); padding: 9px 12px; border-radius: 10px; background: rgba(47, 191, 113, .14); color: #138a55; transition: .25s; }
.mx-v-verdict[data-k="mid"] { background: rgba(208, 131, 9, .14); color: #a86a06; }
.mx-v-verdict[data-k="bad"] { background: rgba(255, 59, 47, .12); color: #d4281d; }
.mx-play-note { font-size: 12.5px; color: var(--ink-2); margin: 0; }
@media (max-width: 860px) { .mx-play { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .mx-card > *, .mx-plane { transition: none !important; }
  .mx-caret, .mx-console.busy .mx-sa path { animation: none !important; }
}

/* ── the run picker under the console ── */
.mx-pick { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--c-line); overflow-x: auto; scrollbar-width: none; }
.mx-pick::-webkit-scrollbar { display: none; }
.mx-pk { flex: none; display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 8px 12px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--c-line); background: transparent; color: var(--c-dim); font: 12.5px var(--f-body); transition: .2s; }
.mx-pk b { font-weight: 600; color: var(--c-ink); }
.mx-pk span { font: 10.5px var(--f-mono); }
.mx-pk:hover { border-color: rgba(240, 239, 234, .35); }
.mx-pk.on { border-color: #ff3b2f; background: rgba(255, 59, 47, .12); }
.mx-plot { position: relative; }
.mx-plot-t { position: absolute; left: 10px; top: 7px; font: 10.5px var(--f-mono); color: var(--c-dim); z-index: 1; }
/* a run without a layout: the schematic and the response share the card; without a response, the schematic takes it */
.mx-card.no-lay .mx-plot { grid-row: 1 / 3; }
.mx-card.no-lay.no-plot .mx-sch { grid-column: 1 / -1; }
.mx-card.no-lay.no-plot { grid-template-rows: 300px auto auto; }

/* ── a shorter page: tighter section rhythm ── */
.mn-sec { padding-top: clamp(70px, 8vw, 120px); }
.mn-facts, .mn-scale, .mn-model { margin-top: clamp(70px, 8vw, 120px); padding-top: clamp(50px, 6vw, 90px); padding-bottom: clamp(50px, 6vw, 90px); }
.mn-fact-grid { margin-top: clamp(26px, 3vw, 44px); }
.mn-fact { padding: 18px 0 clamp(20px, 2.4vw, 32px); }
.mn-fact > b { font-size: clamp(2.4rem, 4vw, 4.2rem); }
.mn-fact h3 { margin: 12px 0 6px; }
.mn-why2 { padding: clamp(22px, 3vw, 38px) 0; }
.mn-sky-h3 { margin-top: clamp(36px, 4vw, 60px); }

/* ── the 45 nm gallery as one strip at the end of sign-off ── */
.mn-lays.mx-strip { display: flex; grid-template-columns: none; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-top: 20px; }
.mn-lays.mx-strip .mn-lay { flex: 0 0 clamp(240px, 28vw, 340px); scroll-snap-align: start; }
/* "ask it why" and "bring a circuit" side by side */
.mx-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: start; margin-top: clamp(10px, 2vw, 24px); }
.mx-duo .mn-why2 { grid-template-columns: 1fr; gap: 18px; margin-top: 0; }
.mx-duo .mn-repair { margin-top: 0; padding-top: clamp(22px, 3vw, 38px); border-top: 1.5px solid var(--dk-ink); }
@media (max-width: 960px) { .mx-duo { grid-template-columns: 1fr; } }
/* the 3D chip: a wider, shorter stage */
.mx-chip-scene { aspect-ratio: 2.1; }
.mx-chip-scene .mx-stack { width: 62%; }
/* On a narrow screen the tilted, turning stack was taller than its short stage and painted over the paragraph above it:
   give it a taller stage, a smaller stack, and clip whatever is left to the stage. */
.mx-chip-scene { overflow: hidden; contain: paint; }
@media (max-width: 860px) { .mx-chip-scene { aspect-ratio: 1.5; } .mx-chip-scene .mx-stack { width: 54%; margin-top: 16%; } }
@media (max-width: 520px) { .mx-chip-scene { aspect-ratio: 1.15; } .mx-chip-scene .mx-stack { width: 62%; margin-top: 14%; } }
/* the run, live: bars per simulation, the latest tries */
.mx-card.is-live { display: block; }
.mx-card.is-live > * { opacity: 1; transform: none; }
.mx-live { height: 100%; min-height: 380px; display: flex; flex-direction: column; gap: 12px; }
.mx-live-h { display: flex; align-items: baseline; gap: 10px; font: 11px var(--f-mono); color: var(--c-dim); text-transform: uppercase; letter-spacing: .06em; }
.mx-live-n { font: 650 30px/1 var(--f-display); color: var(--c-ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mx-live-best { margin-left: auto; color: #ff3b2f; text-transform: none; letter-spacing: 0; font-size: 12px; }
.mx-live-bars { flex: 1; min-height: 160px; display: flex; align-items: flex-end; gap: 3px; border-bottom: 1px solid var(--c-line); padding-bottom: 2px; }
.mx-live-bars i { flex: 1 1 0; max-width: 12px; min-width: 3px; border-radius: 3px 3px 1px 1px; background: rgba(240, 239, 234, .28); animation: mxBar .35s cubic-bezier(.2, .7, .2, 1) both; transform-origin: bottom; }
.mx-live-bars i.ok { background: #2fbf71; } .mx-live-bars i.fail { background: rgba(255, 59, 47, .55); }
@keyframes mxBar { from { transform: scaleY(0); } }
.mx-live-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font: 12px var(--f-mono); color: var(--c-dim); min-height: 5.6em; }
.mx-live-log li:first-child { color: var(--c-ink); }
.mn-lays.mx-strip .mn-lay-img { aspect-ratio: 1.15; height: auto; }
.mn-lays.mx-strip .mn-lay-img img { width: 100%; height: 100%; object-fit: contain; }
/* the 45 nm strip: no grey scrollbar; faded edges; arrows and a progress line */
.mx-strip-wrap { position: relative; }
.mn-lays.mx-strip { scrollbar-width: none; cursor: grab; user-select: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 80px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 80px), transparent); }
.mx-strip-wrap.at-start .mx-strip { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 80px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 80px), transparent); }
.mx-strip-wrap.at-end .mx-strip { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px); mask-image: linear-gradient(90deg, transparent 0, #000 40px); }
.mn-lays.mx-strip::-webkit-scrollbar { display: none; }
.mn-lays.mx-strip.is-drag { cursor: grabbing; scroll-snap-type: none; }
.mn-lays.mx-strip.is-drag img { pointer-events: none; }
.mx-strip-ctl { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.mx-strip-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(240, 239, 234, .25); background: transparent; color: #f0efea; font-size: 18px; cursor: pointer; transition: .2s; flex: none; }
.mx-strip-btn:hover:not(:disabled) { background: #f0efea; color: #0b0b0a; }
.mx-strip-btn:disabled { opacity: .3; cursor: default; }
.mx-strip-bar { flex: 1; height: 2px; background: rgba(240, 239, 234, .14); border-radius: 2px; overflow: hidden; }
.mx-strip-bar i { display: block; height: 100%; background: #ff3b2f; border-radius: 2px; }
/* the prompt the simulator is playing by itself */
.mn-p.is-auto .mn-p-go { animation: mxPulse 1.4s ease-in-out infinite; }

/* "trust the AI" */
.mx-em { color: #ff3b2f; font-style: normal; }

/* scale and sign-off: one dark block, not two with a light seam */
.mn-scale { border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-bottom: clamp(30px, 4vw, 50px); }
.mn-scale + .mn-facts.mn-sky { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; padding-top: clamp(40px, 5vw, 70px);
  border-top: 1px solid rgba(240, 239, 234, .08); }

/* the dots */
.mx-dots { position: fixed; right: clamp(10px, 1.6vw, 24px); top: 50%; transform: translate(14px, -50%); z-index: 60; display: flex; flex-direction: column;
  gap: 4px; opacity: 0; pointer-events: none; transition: opacity .35s, transform .35s; --dot: #0b0b0a; --dot-dim: rgba(11, 11, 10, .25); --pill: #0b0b0a; --pill-ink: #f4f3ef; }
.mx-dots.show { opacity: 1; pointer-events: auto; transform: translate(0, -50%); }
.mx-dots.on-dark { --dot: #f0efea; --dot-dim: rgba(240, 239, 234, .3); --pill: #f0efea; --pill-ink: #0b0b0a; }
.mx-dots button { position: relative; width: 24px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.mx-dots button::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--dot-dim); transition: background .25s, height .3s, border-radius .3s; }
.mx-dots button:hover::before { background: var(--dot); }
.mx-dots button.on::before { background: #ff3b2f; height: 20px; border-radius: 4px; }
.mx-dots button span { position: absolute; right: 30px; top: 50%; transform: translate(6px, -50%); white-space: nowrap; pointer-events: none;
  font: 600 12px var(--f-body); padding: 6px 10px; border-radius: 8px; background: var(--pill); color: var(--pill-ink); opacity: 0; transition: .2s; }
.mx-dots button:hover span, .mx-dots button:focus-visible span { opacity: 1; transform: translate(0, -50%); }
.mx-dots button:focus-visible { outline: 2px solid #ff3b2f; outline-offset: 2px; border-radius: 6px; }
@media (max-width: 760px) { .mx-dots { display: none; } }

/* the playground: a hint until it is touched, a readout under the mouse */
.mx-play-side { position: relative; }
.mx-play-hint { align-self: flex-start; margin-top: -8px; font: 600 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #ff3b2f;
  animation: mxHint 1.6s ease-in-out infinite; }
@keyframes mxHint { 0%, 100% { opacity: .35; transform: translateX(0); } 50% { opacity: 1; transform: translateX(6px); } }
.mx-play-plot { position: relative; }
.mx-play-plot canvas { cursor: crosshair; }
.mx-play-tip { position: absolute; pointer-events: none; min-width: 150px; padding: 9px 11px; border-radius: 10px; background: #0b0b0a; color: #f0efea;
  font: 12px var(--f-mono); display: grid; gap: 3px; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; z-index: 2; }
.mx-play-tip.on { opacity: 1; transform: none; }
.mx-play-tip b { font: 650 14px var(--f-display); }
.mx-play-tip i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.mx-play-tip small { color: rgba(240, 239, 234, .55); font-size: 11px; }
.mx-play:not(.touched) .mx-play-cc { pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .mx-play-hint { animation: none; } }

/* ── the model, as a model card, and its size against general chat models ── */
.mx-mc { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: stretch; }
.mx-mc-card { background: #0b0b0a; color: #f0efea; border-radius: 22px; padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45); position: relative; overflow: hidden; }
.mx-mc-card::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 59, 47, .35), transparent 70%); pointer-events: none; }
.mx-mc-top { display: flex; justify-content: space-between; align-items: center; font: 600 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.mx-mc-badge { padding: 4px 9px; border-radius: 99px; border: 1px solid rgba(240, 239, 234, .3); }
.mx-mc-v { color: #ff3b2f; }
.mx-mc-name { margin: 6px 0 0; font: 700 clamp(2.4rem, 4.6vw, 4.4rem)/1 var(--f-display); letter-spacing: -.045em; }
.mx-mc-tag { margin: 0; color: rgba(240, 239, 234, .65); }
.mx-mc-spec { margin: 10px 0 0; display: grid; gap: 0; }
.mx-mc-spec div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid rgba(240, 239, 234, .12); align-items: baseline; }
.mx-mc-spec dt { font: 500 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(240, 239, 234, .5); }
.mx-mc-spec dd { margin: 0; font-size: 15px; }
.mx-mc-spec dd b { font: 650 22px var(--f-display); letter-spacing: -.02em; }
.mx-mc-spec div:first-child dd b { font-size: 34px; color: #ff3b2f; }
.mx-mc-red { color: #ff3b2f; }
.mx-mc-size { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 0; }
.mx-mc-size h3, .mx-mc-h3 { margin: 0; font: 650 clamp(1.4rem, 2.2vw, 2rem)/1.15 var(--f-display); letter-spacing: -.03em; }
.mx-mc-note { margin: 0 0 8px; color: var(--ink-2); font-size: 14px; max-width: 56ch; }
.mx-sz { display: grid; gap: 10px; }
/* log scale from 1 M to 1 T: width = log10(p / 1e6) / 6 */
.mx-sz-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 132px; gap: 12px; align-items: center; font-size: 14px; }
.mx-sz-row span { color: var(--ink-2); }
.mx-sz-row i { height: 14px; border-radius: 7px; background: rgba(11, 11, 10, .14); width: var(--w); min-width: 6px;
  transform-origin: left; transform: scaleX(0); }
.mx-sz.in .mx-sz-row i { animation: mxSz 1.4s cubic-bezier(.2, .7, .2, 1) both; transform: none; }
.mx-sz.in .mx-sz-row:nth-child(2) i { animation-delay: .12s; } .mx-sz.in .mx-sz-row:nth-child(3) i { animation-delay: .24s; }
.mx-sz.in .mx-sz-row:nth-child(4) i { animation-delay: .36s; } .mx-sz.in .mx-sz-row:nth-child(5) i { animation-delay: .48s; }
@media (prefers-reduced-motion: reduce) { .mx-sz-row i { transform: none; } .mx-sz.in .mx-sz-row i { animation: none; } }
.mx-sz-row b { font: 600 14px var(--f-mono); text-align: right; }
.mx-sz-row b small { color: var(--ink-2); font-weight: 400; margin-left: 4px; }
.mx-sz-row.is-us span, .mx-sz-row.is-us b { color: #ff3b2f; font-weight: 700; }
.mx-sz-row.is-us i { background: #ff3b2f; }
@keyframes mxSz { from { transform: scaleX(0); } }
.mx-mc-bench { margin-top: clamp(40px, 5vw, 70px); }
@media (max-width: 860px) { .mx-mc { grid-template-columns: 1fr; } .mx-sz-row { grid-template-columns: 96px minmax(0, 1fr) 104px; font-size: 13px; } }
/* chat model vs SrusanVLSI-1 in Minnal */
.mx-vs { display: flex; flex-direction: column; gap: 14px; min-width: 0; justify-content: center; }
.mx-vs h3 { margin: 0; font: 650 clamp(1.4rem, 2.2vw, 2rem)/1.15 var(--f-display); letter-spacing: -.03em; }
.mx-vs-t { display: grid; border-top: 1.5px solid var(--ink); }
.mx-vs-r { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1.15fr); gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.mx-vs-r > span { min-width: 0; display: flex; align-items: center; gap: 9px; }
.mx-vs-r > span:first-child { color: var(--ink-2); font-size: 13.5px; }
.mx-vs-r > span:nth-child(2) { color: var(--ink-2); }
.mx-vs-r .us { color: var(--ink); font-weight: 600; }
.mx-vs-h { padding: 10px 0; font: 600 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.mx-vs-h .us { color: #ff3b2f; }
.mx-vs-r i { flex: none; width: 20px; height: 20px; border-radius: 50%; position: relative; }
.mx-vs-r i.ok { background: #ff3b2f; }
.mx-vs-r i.ok::after { content: ''; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.mx-vs-r i.no { border: 1.5px solid rgba(11, 11, 10, .25); }
.mx-vs-r i.no::before, .mx-vs-r i.no::after { content: ''; position: absolute; left: 4px; top: 8px; width: 9px; height: 1.5px; background: rgba(11, 11, 10, .4); transform: rotate(45deg); }
.mx-vs-r i.no::after { transform: rotate(-45deg); }
.mx-vs-r i.mid { border: 1.5px solid rgba(11, 11, 10, .25); }
.mx-vs-r i.mid::after { content: ''; position: absolute; left: 4px; top: 8px; width: 9px; height: 1.5px; background: rgba(11, 11, 10, .4); }
@media (max-width: 640px) { .mx-vs-r { grid-template-columns: 1fr 1fr; } .mx-vs-r > span:first-child { grid-column: 1 / -1; } .mx-vs-h > span:first-child { display: none; } }
/* the benchmark: a heading you notice, the headline number big */
.mx-mc-bench { align-items: center; }
.mx-mc-kicker { margin: 0 0 10px; font: 600 12px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #ff3b2f; }
.mx-mc-h3 { font-size: clamp(1.8rem, 3.2vw, 3rem) !important; line-height: 1.05 !important; color: var(--ink); }
.mx-mc-h3 span { color: var(--ink-2); }
.mx-mc-big { display: flex; align-items: baseline; gap: 14px; margin: 22px 0 0; }
.mx-mc-big b { font: 700 clamp(4rem, 8vw, 7.5rem)/.9 var(--f-display); letter-spacing: -.06em; color: #ff3b2f; }
.mx-mc-big span { font-size: 16px; color: var(--ink); max-width: 14ch; line-height: 1.3; }
/* the model card beside its benchmark; the comparison bars full width below */
.mx-mc-side { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.mx-mc-bars { margin-top: clamp(30px, 4vw, 54px); }
.mx-mc-bars .mn-bench { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 64px); }
.mx-mc-bars .mn-bench-foot { grid-column: 1 / -1; }
.mx-mc-bars .mn-bar:nth-child(2) { border-top: 1.5px solid var(--ink); }
@media (max-width: 860px) { .mx-mc-bars .mn-bench { grid-template-columns: 1fr; } .mx-mc-bars .mn-bar:nth-child(2) { border-top: 1px solid var(--line); } }
