/* LockStep Systems site. Concept brand v0.1: carbon and titanium, one Ion accent used as a signal. */
@font-face { font-family: "Michroma"; src: url("/fonts/michroma-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: dark;
  --carbon: #0b0b0c;
  --panel: #151618;
  --graphite: #1c1d20;
  --line: #2a2b2f;
  --steel: #6e7177;
  --muted: #a3a6ac;
  --titanium: #f2f2f0;
  --ion: #00c2ff;
  --pass: #1fbf6a;
  --hold: #f2a900;
  --fault: #e5303a;
  --ui: "Barlow", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --logo: "Michroma", var(--ui);
  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--carbon); color: var(--titanium); font: 400 17px/1.55 var(--ui); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--ion); outline-offset: 3px; }
::selection { background: var(--ion); color: var(--carbon); }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
.mono { font-family: var(--mono); }
.label { font: 500 12px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.label b { color: var(--ion); font-weight: 500; margin-right: .6em; }

/* Preview banner */
.preview { background: var(--hold); color: #1a1300; font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; text-align: center; padding: 7px var(--gut); }

/* Header */
.top { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(11, 11, 12, .92); backdrop-filter: blur(8px); z-index: 10; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.lockup svg { width: 28px; height: 28px; flex: none; }
.lockup .wm { font: 400 15px/1 var(--logo); letter-spacing: .3em; margin-right: -.3em; }
.lockup .q { font: 500 8px/1 var(--ui); letter-spacing: .62em; opacity: .72; margin-top: 5px; }
.nav { display: flex; gap: 4px; list-style: none; }
.nav a { display: inline-block; padding: 10px 14px; font: 500 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--muted); border: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--titanium); border-color: var(--line); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } .lockup .q { display: none; } }
@media (max-width: 440px) {
  .top .wrap { gap: 8px; }
  .lockup { gap: 10px; }
  .lockup .wm { font-size: 13px; letter-spacing: .2em; margin-right: -.2em; }
  .nav a { padding: 10px 8px; letter-spacing: .05em; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; font: 500 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--titanium); }
.btn.solid { background: var(--titanium); color: var(--carbon); }
.btn.solid:hover { background: var(--ion); border-color: var(--ion); }
.btn.ghost:hover { border-color: var(--ion); color: var(--ion); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Hero */
.hero { padding: clamp(64px, 11vw, 140px) 0 clamp(56px, 8vw, 96px); border-bottom: 1px solid var(--line); }
.hero h1 { font: 300 clamp(42px, 7.4vw, 92px)/1.02 var(--ui); letter-spacing: -.02em; max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--ion); }
.hero .lede { margin-top: 28px; max-width: 58ch; color: var(--muted); font-size: clamp(18px, 1.6vw, 20px); }
.hero .label { margin-bottom: 28px; }

/* Sections */
section.block { padding: clamp(64px, 9vw, 112px) 0; border-bottom: 1px solid var(--line); }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px 64px; align-items: end; margin-bottom: 48px; }
.head h2 { font: 300 clamp(30px, 4vw, 46px)/1.1 var(--ui); letter-spacing: -.01em; }
.head p { color: var(--muted); max-width: 60ch; }
@media (max-width: 820px) { .head { grid-template-columns: 1fr; } }
.rule { border-top: 1px solid var(--titanium); padding-top: 14px; margin-bottom: 22px; }

/* Grids */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .g3, .g2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .g4 { grid-template-columns: 1fr; } }
.cell { background: var(--carbon); padding: 32px 28px 36px; }
.cell.panel { background: var(--panel); }
.cell h3 { font: 500 22px/1.25 var(--ui); margin: 18px 0 10px; }
.cell p, .cell li { color: var(--muted); }
.cell ul { list-style: none; display: grid; gap: 8px; margin-top: 14px; }
.cell li { padding-left: 18px; position: relative; }
.cell li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--steel); }
.icon { width: 32px; height: 32px; color: var(--titanium); }

/* Product cards */
.product { display: flex; flex-direction: column; min-height: 100%; }
.product .status { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.dot { width: 8px; height: 8px; display: inline-block; }
.product h3 { font-size: 30px; font-weight: 400; }
.product .more { margin-top: auto; padding-top: 28px; }
.product .more a { font: 500 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--ion); }
.product .more a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Steps */
.steps { counter-reset: s; }
.step .n { font: 500 13px/1 var(--mono); color: var(--ion); letter-spacing: .1em; }

/* Flow diagram */
.flow { border: 1px solid var(--line); background: var(--panel); padding: clamp(20px, 3vw, 36px); overflow-x: auto; }
.flow svg { min-width: 760px; width: 100%; height: auto; }
.flow figcaption { margin-top: 18px; color: var(--muted); font-size: 15px; }
.flow text { font-family: var(--mono); }

/* Product hero */
.pmark { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.pmark svg { width: 40px; height: 40px; }
.pmark span { font: 600 15px/1 var(--mono); letter-spacing: .3em; text-transform: uppercase; }

/* Boundary note */
.note { border-left: 2px solid var(--ion); padding: 6px 0 6px 20px; color: var(--muted); max-width: 72ch; }
.note b { color: var(--titanium); font-weight: 500; }

/* Equipment list */
.eq { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.eq div { background: var(--carbon); padding: 22px 24px; display: flex; gap: 14px; align-items: center; }
.eq .icon { width: 26px; height: 26px; color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.contact h2 { font: 300 clamp(34px, 4.6vw, 56px)/1.05 var(--ui); }
.contact dl { display: grid; gap: 18px; }
.contact dt { margin-bottom: 4px; }
.contact dd { font: 400 18px/1.4 var(--mono); }
.contact dd small { display: block; font: 400 13px/1.4 var(--ui); color: var(--steel); margin-top: 4px; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

/* Footer */
footer { padding: 40px 0 56px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font: 400 12px/1.6 var(--mono); letter-spacing: .06em; color: var(--steel); text-transform: uppercase; }

/* Hero layout with art */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px 64px; align-items: center; }
.hero-grid h1 { max-width: 14ch; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-art { border: 1px solid var(--line); background: var(--panel); padding: 28px; }
.hero-art svg { width: 100%; height: auto; }
.record { border: 1px solid var(--line); background: var(--panel); }
.record-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--titanium); font: 500 15px/1 var(--mono); }
.record dl { display: grid; }
.record dl div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 12px 22px; border-bottom: 1px solid var(--line); }
.record dt { font: 500 12px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.record dd { font: 400 15px/1.5 var(--mono); font-variant-numeric: tabular-nums; }
.record .ok { color: var(--pass); font-size: 10px; vertical-align: 2px; margin-right: 6px; }
.record figcaption { padding: 14px 22px; font-size: 13px; color: var(--steel); }
@media (max-width: 420px) { .record dl div { grid-template-columns: 1fr; gap: 2px; } }

/* Utilities */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Matchmark opening */
.mm-hero .mm-name { font: 400 clamp(36px, 5.6vw, 72px)/1.04 var(--ui); letter-spacing: -.015em; max-width: none; }
.mm-sub { margin-top: 14px; font: 500 clamp(13px, 1.2vw, 15px)/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.promise { margin-top: clamp(28px, 4vw, 44px); font: 300 clamp(26px, 3.2vw, 40px)/1.15 var(--ui); max-width: 24ch; }
.promise em { font-style: normal; color: var(--ion); }
.mm-hero .lede { margin-top: 20px; }

/* Film: the static, reduced-motion and no-script layout is an ordered list of stills */
.film { border-bottom: 1px solid var(--line); padding-top: clamp(64px, 9vw, 112px); }
.film-head { margin-bottom: 40px; display: grid; gap: 16px; }
.film-head h2 { font: 300 clamp(30px, 4vw, 46px)/1.1 var(--ui); letter-spacing: -.01em; }
.film-head p:last-child { color: var(--muted); max-width: 60ch; }
.film-track { position: relative; }
.film-stage { display: none; }
.chapters { list-style: none; width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.chapter { background: var(--carbon); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; }
.ch-still { position: relative; background: var(--stage, #050506); }
.ch-still img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.ch-copy { padding: 28px clamp(22px, 3vw, 40px); }
.ch-copy .n { font: 500 12px/1 var(--mono); color: var(--ion); letter-spacing: .14em; text-transform: uppercase; }
.ch-copy h3 { font: 400 clamp(24px, 2.4vw, 30px)/1.2 var(--ui); margin: 14px 0 10px; }
.ch-copy h3.mono { font: 500 clamp(22px, 2.2vw, 28px)/1.2 var(--mono); letter-spacing: .06em; }
.ch-copy p { color: var(--muted); }
.ch-copy a { color: var(--ion); text-underline-offset: 3px; }
.film-cap { margin-top: 18px; padding-bottom: 32px; font: 400 13px/1.5 var(--mono); letter-spacing: .04em; color: var(--steel); }
@media (max-width: 820px) { .chapter { grid-template-columns: 1fr; } }

/* Tracked mark marker, shared by the film overlay and the final still */
.film-dot { position: absolute; left: calc(var(--mx, .3) * 100%); top: calc(var(--my, .5) * 100%); width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 2px solid var(--ion); box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); pointer-events: none; }

/* Film: enhanced, scroll-scrubbed stage (added by /matchmark/film.js) */
.film-on .film-stage { display: block; position: sticky; top: var(--hdr, 65px); height: calc(100vh - var(--hdr, 65px)); height: calc(100svh - var(--hdr, 65px)); overflow: hidden; background: var(--stage, #050506); z-index: 0; }
.film-on .film-frame { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(100%, calc((100svh - var(--hdr, 65px)) * 16 / 9)); aspect-ratio: 16 / 9; }
.film-frame img, .film-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-frame video { opacity: 0; transition: opacity .3s; }
.film-ready .film-frame video { opacity: 1; }
.film-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 80px 40px var(--stage, #050506); }
.film-link, .film-frame .film-dot, .mini-rec { opacity: var(--match, 0); }
.film-link { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.film-link line { stroke: var(--ion); stroke-width: 2; vector-effect: non-scaling-stroke; }
.film-frame .film-dot { z-index: 3; }
.mini-rec { position: absolute; right: 5%; top: 30%; width: min(34%, 300px); z-index: 3; background: rgba(21, 22, 24, .94); border: 1px solid var(--line); border-top: 1px solid var(--ion); font: 400 13px/1.4 var(--mono); font-variant-numeric: tabular-nums; }
.mini-rec p { display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.mini-rec p span:first-child { color: var(--muted); }
.mini-rec .mini-head { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.mini-rec .mini-head span:first-child { color: var(--titanium); }
.mini-rec .mini-st { justify-content: flex-start; align-items: center; gap: 8px; border-bottom: 0; color: var(--titanium); }
.sq { display: inline-block; width: 9px; height: 9px; background: var(--pass); flex: none; }

.film-on .chapters { width: auto; display: block; background: none; border: 0; position: relative; z-index: 1; margin-top: calc(-100svh + var(--hdr, 65px)); padding: calc(50svh - var(--hdr, 65px) / 2) 0; pointer-events: none; }
.film-on .chapter { background: none; display: flex; align-items: center; min-height: 100svh; width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
.film-on .ch-still { display: none; }
.film-on .ch-copy { pointer-events: auto; width: min(400px, 100%); background: rgba(11, 11, 12, .86); border: 1px solid var(--line); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.film-on .chapter.quiet .ch-copy { background: rgba(11, 11, 12, .6); }
.film-on .film-cap { position: relative; z-index: 1; padding-top: 8px; }

@media (max-width: 760px) {
  .film-on .film-stage { height: auto; aspect-ratio: 16 / 9; }
  .film-on .film-frame { position: relative; left: auto; top: auto; transform: none; width: 100%; }
  .film-on .chapters { margin-top: 0; padding: 12svh 0 30svh; }
  .film-on .chapter { min-height: 62svh; }
  .film-on .ch-copy { width: 100%; }
  .mini-rec { display: none; }
  .film-frame::after { box-shadow: inset 0 0 30px 12px var(--stage, #050506); }
}

/* Evidence example */
.ev { display: grid; gap: 20px; }
.scenarios { display: flex; flex-wrap: wrap; border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.scenarios[hidden] { display: none; }
.scn { appearance: none; background: var(--carbon); color: var(--muted); border: 0; border-right: 1px solid var(--line); min-height: 48px; padding: 0 22px; font: 500 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.scn:last-child { border-right: 0; }
.scn:hover { color: var(--titanium); }
.scn[aria-pressed="true"] { background: var(--titanium); color: var(--carbon); }
.scn:focus-visible { outline-offset: -5px; position: relative; z-index: 1; }
.scn[aria-pressed="true"]:focus-visible { outline-color: var(--carbon); }

.records { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 980px) { .records { grid-template-columns: 1fr; } }
.rec { background: var(--panel); }
.ev-on .records { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.ev-on .rec { grid-area: 1 / 1; }
.ev-on .rec[hidden] { display: block; visibility: hidden; }
.rec-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--titanium); }
.rec-head h3 { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; font: 500 18px/1.2 var(--ui); }
.rec-head h3 .mono { font: 500 14px/1 var(--mono); color: var(--muted); }
.tag { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--steel); border: 1px solid var(--line); padding: 6px 8px; white-space: nowrap; }
.rec dl { display: grid; }
.rec dl div { display: grid; grid-template-columns: 10em 1fr; gap: 12px; padding: 11px 22px; border-bottom: 1px solid var(--line); }
.rec dt { font: 500 12px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rec dd { font: 400 15px/1.5 var(--mono); font-variant-numeric: tabular-nums; }
.rec dd .src { font: 400 12px/1.3 var(--ui); color: var(--muted); margin-left: 6px; }
.rec mark, .plate mark { background: var(--fault); color: var(--titanium); padding: 0 2px; }
.st { display: flex; align-items: center; gap: 10px; color: var(--titanium); }
.st.fault .sq { background: var(--fault); }
.st.hold .sq { background: var(--hold); }
.rec-text { padding: 16px 22px 20px; color: var(--titanium); }
@media (max-width: 460px) { .rec dl div { grid-template-columns: 1fr; gap: 2px; } }

.align { display: grid; grid-template-columns: auto minmax(24px, 1fr) auto; align-items: center; padding: 22px; border-bottom: 1px solid var(--line); }
.plate { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--steel); background: var(--carbon); font: 500 clamp(14px, 1.6vw, 17px)/1 var(--mono); letter-spacing: .06em; white-space: nowrap; }
.plate small { font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.plate.empty { border-style: dashed; color: var(--steel); }
.joint { height: 2px; background: var(--ion); }
.is-mismatch .joint { background: linear-gradient(90deg, var(--ion) 0 38%, transparent 38% 62%, var(--fault) 62%); }
.is-missing .joint { background: repeating-linear-gradient(90deg, var(--steel) 0 4px, transparent 4px 9px); }
.is-match .plate { border-color: var(--ion); }
.ev-cap { font: 400 13px/1.5 var(--mono); letter-spacing: .02em; color: var(--steel); max-width: 80ch; }
@media (max-width: 420px) {
  .align { grid-template-columns: 1fr; }
  .joint { width: 2px; height: 18px; margin-left: 22px; }
  .is-mismatch .joint { background: linear-gradient(180deg, var(--ion) 0 38%, transparent 38% 62%, var(--fault) 62%); }
  .is-missing .joint { background: repeating-linear-gradient(180deg, var(--steel) 0 4px, transparent 4px 9px); }
}

.eq-note { margin-top: 18px; color: var(--steel); font-size: 15px; }
.boundary { margin-bottom: clamp(48px, 7vw, 80px); }

/* Homepage product still */
.product-still { margin: -32px -28px 24px; border-bottom: 1px solid var(--line); background: var(--stage, #050506); }
.product-still img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.product .desc { margin: 6px 0 12px; font: 500 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ==========================================================================
   Light theme (body.mm-light), used site-wide since 2026-11-19. Calm neutral surfaces, generous space,
   rounded cards and pill controls; one blue for selection, colour only for state.
   ========================================================================== */
.mm-light {
  color-scheme: light;
  --carbon: #f4f5f7;   /* page */
  --panel: #ffffff;    /* cards */
  --graphite: #e9ecef;
  --line: #e4e6ea;
  --steel: #8e9196;
  --muted: #5c5e62;
  --titanium: #171a20; /* text */
  --ion: #3e6ae1;      /* selection and the evidence link */
  --pass: #1fb05a;
  --hold: #f2a900;
  --fault: #e5303a;
  --stage: #e8eaed;
  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(23, 26, 32, .04), 0 6px 22px rgba(23, 26, 32, .06);
  --shadow-lg: 0 24px 60px rgba(23, 26, 32, .14);
  background: var(--carbon);
  color: var(--titanium);
}
.mm-light ::selection { color: #fff; }
.mm-light .top { background: rgba(244, 245, 247, .86); backdrop-filter: blur(18px); border-bottom-color: var(--line); }
.mm-light .nav a { border-radius: 10px; color: var(--muted); }
.mm-light .nav a:hover, .mm-light .nav a[aria-current="page"] { color: var(--titanium); background: rgba(23, 26, 32, .05); border-color: transparent; }
.mm-light :focus-visible { outline: 3px solid var(--ion); outline-offset: 2px; }

/* Buttons: pills */
.mm-light .btn { border-radius: 999px; min-height: 48px; padding: 0 28px; font: 500 15px/1 var(--ui); letter-spacing: .01em; text-transform: none; border: 0; }
.mm-light .btn.solid { background: var(--ion); color: #fff; }
.mm-light .btn.solid:hover { background: #2f58c9; }
.mm-light .btn.ghost { background: #fff; color: var(--titanium); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.mm-light .btn.ghost:hover { color: var(--titanium); background: #f1f3f5; }

/* Opening: centred, generous */
.mm-light .hero { border-bottom: 0; }
.mm-light .mm-hero { text-align: center; padding-bottom: clamp(40px, 6vw, 72px); }
.mm-light .pmark { justify-content: center; }
.mm-light .pmark span { font: 500 14px/1 var(--ui); letter-spacing: .24em; }
.mm-light .mm-name { font-weight: 500; letter-spacing: -.02em; margin-inline: auto; }
.mm-light .mm-sub { font: 400 clamp(17px, 1.6vw, 20px)/1.4 var(--ui); letter-spacing: 0; text-transform: none; color: var(--muted); margin-top: 10px; }
.mm-light .promise { margin-inline: auto; font-weight: 400; max-width: 30ch; }
.mm-light .mm-hero .lede { margin-inline: auto; }
.mm-light .mm-hero .actions { justify-content: center; }

/* Section rhythm */
.mm-light section.block, .mm-light .film { border-bottom: 0; }
.mm-light .label { font: 500 13px/1.2 var(--ui); letter-spacing: .08em; }
.mm-light .label b { color: var(--ion); }
.mm-light .head h2, .mm-light .film-head h2 { font-weight: 500; letter-spacing: -.015em; }

/* Film */
.mm-light .film-head { text-align: center; justify-items: center; }
.mm-light .chapters { background: none; border: 0; gap: 20px; }
.mm-light .chapter { background: var(--panel); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.mm-light .ch-copy .n { font: 500 13px/1 var(--ui); letter-spacing: .08em; }
.mm-light .film-on .chapters { gap: 0; }
.mm-light .film-on .chapter { background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.mm-light .film-on .ch-copy { background: rgba(255, 255, 255, .9); border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.mm-light .film-on .chapter.quiet .ch-copy { background: rgba(255, 255, 255, .72); }
.mm-light .film-cap { text-align: center; font-family: var(--ui); }
.mm-light .film-dot { border-radius: 50%; border-width: 3px; box-shadow: 0 0 0 4px rgba(62, 106, 225, .2); }
.mm-light .mini-rec { background: rgba(255, 255, 255, .95); border: 0; border-radius: var(--r); box-shadow: var(--shadow-lg); overflow: hidden; font-family: var(--ui); font-size: 15px; }
.mm-light .mini-rec p span:last-child { font-family: var(--mono); }
.mm-light .mini-rec .mini-head { font-size: 12px; }
.mm-light .mini-rec .mini-head span:last-child { font-family: var(--ui); color: var(--muted); }
.mm-light .sq { border-radius: 50%; }

/* Evidence: segmented control and a product-style record card */
.mm-light .scenarios { border: 0; padding: 4px; gap: 4px; background: rgba(23, 26, 32, .06); border-radius: 14px; }
.mm-light .scn { background: transparent; border: 0; border-radius: 10px; min-height: 44px; padding: 0 20px; font: 500 15px/1 var(--ui); letter-spacing: 0; text-transform: none; color: var(--muted); }
.mm-light .scn:hover { color: var(--titanium); }
.mm-light .scn[aria-pressed="true"] { background: #fff; color: var(--titanium); box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.mm-light .scn[aria-pressed="true"]:focus-visible { outline-color: var(--ion); }
.mm-light .records { background: none; border: 0; gap: 20px; }
.mm-light .rec { border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.mm-light .rec-head { border-bottom: 1px solid var(--line); padding: 20px 24px; }
.mm-light .rec-head h3 { font-size: 20px; }
.mm-light .tag { border-radius: 999px; font: 500 12px/1 var(--ui); letter-spacing: .02em; text-transform: none; background: #fff4dc; color: #7a4e00; border-color: rgba(242, 169, 0, .45); }
.mm-light .rec dl div { padding: 12px 24px; }
.mm-light .rec dt { font: 400 14px/1.6 var(--ui); letter-spacing: 0; text-transform: none; }
.mm-light .rec mark, .mm-light .plate mark { border-radius: 4px; color: #fff; }
.mm-light .rec-text { padding: 18px 24px 22px; font-weight: 500; }
.mm-light .align { padding: 22px 24px; background: #f7f8fa; }
.mm-light .plate { border-radius: var(--r); border-color: var(--line); background: #fff; box-shadow: var(--shadow); }
.mm-light .plate small { font: 500 11px/1 var(--ui); letter-spacing: .06em; }
.mm-light .is-match .plate { border-color: var(--ion); }
.mm-light .joint { border-radius: 2px; }
.mm-light .st .sq { width: 10px; height: 10px; }
.mm-light .ev-cap { font-family: var(--ui); font-size: 14px; }

/* Detail sections */
.mm-light .flow { background: var(--panel); border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.mm-light .grid { background: none; border: 0; gap: 16px; }
.mm-light .cell { background: var(--panel); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.mm-light .icon { color: var(--ion); }
.mm-light .eq { background: none; border: 0; gap: 12px; }
.mm-light .eq div { background: var(--panel); border-radius: var(--r); box-shadow: var(--shadow); }
.mm-light .eq .icon { color: var(--muted); }
.mm-light .note { border-left: 0; background: var(--panel); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 22px 26px; position: relative; padding-left: 50px; }
.mm-light .note::before { content: ""; position: absolute; left: 24px; top: 30px; width: 10px; height: 10px; border-radius: 50%; background: var(--ion); }
.mm-light .contact dd { font-family: var(--ui); font-weight: 500; }
.mm-light .contact dd small { color: var(--muted); font-weight: 400; }
/* Homepage */
.mm-light .hero-art { border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.mm-light .hero h1 { font-weight: 400; }
.mm-light .product { border-radius: var(--r-lg); overflow: hidden; }
.mm-light .product-still { margin: -32px -28px 24px; border-bottom: 0; }
.mm-light .product .status, .mm-light .step .n, .mm-light .product .desc { font: 500 13px/1.3 var(--ui); letter-spacing: .04em; text-transform: none; }
.mm-light .product .more a { font: 500 15px/1 var(--ui); letter-spacing: 0; text-transform: none; }
.mm-light .dot { border-radius: 50%; }
.mm-light footer .wrap { font-family: var(--ui); letter-spacing: .02em; color: var(--muted); }

/* ==========================================================================
   Homepage hero film (.lh): full-bleed looping line, live device layer.
   ========================================================================== */
.lh { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: max(600px, min(calc(100svh - 96px), 940px)); background: var(--stage, #e8eaed); }
.lh-media { position: absolute; inset: 0; --focus: 68%; }
.lh-media img, .lh-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus) 50%; }
.lh-media video { opacity: 0; transition: opacity .6s ease; }
.lh-playing .lh-media video { opacity: 1; }
.lh-scrim { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(244, 245, 247, .94) 0%, rgba(244, 245, 247, .82) 30%, rgba(244, 245, 247, 0) 58%),
    linear-gradient(0deg, rgba(244, 245, 247, .9) 0%, rgba(244, 245, 247, 0) 26%); }
.lh-copy { position: relative; z-index: 2; padding: clamp(96px, 14vh, 160px) 0 clamp(96px, 12vh, 132px); }
.lh-copy > * { max-width: 34rem; }
.lh-copy .label { margin-bottom: 24px; }
.lh h1 { font: 400 clamp(44px, 6.4vw, 88px)/1.0 var(--ui); letter-spacing: -.025em; max-width: 12ch; }
.lh h1 em { font-style: normal; color: var(--ion); }
.lh .lede { margin-top: 24px; color: var(--muted); font-size: clamp(17px, 1.4vw, 19px); }

.lh-tags { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.lh-tag { position: absolute; left: 0; top: 0; translate: -50% -100%; white-space: nowrap; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); box-shadow: 0 8px 24px rgba(23, 26, 32, .14); font: 500 12.5px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--titanium); opacity: 0; transition: opacity .35s ease; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lh-tag::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: var(--steel); }
.lh-tag-read::before { background: var(--pass); }
.lh-tag.on { opacity: 1; }

.lh-lanes { position: absolute; z-index: 2; right: var(--gut); bottom: 76px; width: min(460px, 38vw); padding: 14px 16px 10px; border-radius: var(--r-lg, 22px); background: rgba(255, 255, 255, .78); box-shadow: 0 18px 48px rgba(23, 26, 32, .12); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); opacity: 0; transition: opacity .5s ease; }
.lh-data .lh-lanes { opacity: 1; }
.lh-lanes-head { font: 500 12px/1 var(--ui); letter-spacing: .04em; color: var(--muted); margin-bottom: 6px; }
.lh-lanes canvas { display: block; width: 100%; height: 132px; --lane-ink: #5c5e62; --lane-rule: #d9dde2; --lane-tick: #c3c8ce; --lane-blue: #3e6ae1; }

.lh-foot { position: absolute; z-index: 3; left: 0; right: 0; bottom: 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.lh-cap { font: 400 13px/1.4 var(--ui); color: var(--muted); }
.lh-pause { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 1px var(--line); color: var(--titanium); font: 500 13px/1 var(--ui); cursor: pointer; }
.lh-pause[hidden] { display: none; }
.lh-pause svg { width: 14px; height: 14px; fill: currentColor; }

@media (max-width: 980px) { .lh-lanes { display: none; } }
@media (max-width: 760px) {
  .lh { min-height: max(560px, calc(100svh - 96px)); }
  .lh-scrim { background: linear-gradient(0deg, rgba(244, 245, 247, .97) 0%, rgba(244, 245, 247, .92) 44%, rgba(244, 245, 247, 0) 62%); }
  .lh-copy { padding: 40vh 0 84px; }
  .lh-tag { font-size: 11px; padding: 6px 10px; }
}

/* ==========================================================================
   Homepage story (.ls): a scroll-driven scene drawn by /story.js.
   Without the script it is a grid of text cards; with reduced motion each card gets a still.
   ========================================================================== */
.ls { padding-top: clamp(64px, 9vw, 112px); }
.ls-head { margin-bottom: 40px; display: grid; gap: 16px; text-align: center; justify-items: center; }
.ls-head h2 { font: 500 clamp(30px, 4vw, 46px)/1.1 var(--ui); letter-spacing: -.015em; }
.ls-head p:last-child { color: var(--muted); max-width: 60ch; }
.ls-track { position: relative; }
.ls-stage { display: none; }
.ls-chapters { list-style: none; width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 980px) { .ls-chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ls-chapters { grid-template-columns: 1fr; } }
.ls-ch { background: var(--panel); border-radius: var(--r-lg, 22px); box-shadow: var(--shadow); overflow: hidden; }
.ls-still { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; background: #f4f5f7; }
.ls-copy { padding: 26px clamp(22px, 3vw, 32px) 30px; }
.ls-copy .n { font: 500 13px/1 var(--ui); letter-spacing: .08em; color: var(--ion); }
.ls-copy h3 { font: 500 clamp(22px, 2.2vw, 28px)/1.2 var(--ui); letter-spacing: -.01em; margin: 14px 0 10px; }
.ls-copy p { color: var(--muted); }
.ls-copy a { color: var(--ion); text-underline-offset: 3px; }
.ls-cap { margin-top: 18px; padding-bottom: clamp(32px, 5vw, 64px); text-align: center; font: 400 13px/1.5 var(--ui); color: var(--steel); }

/* Enhanced: the stage pins under the header while the chapter cards scroll over it */
.ls-on .ls-stage { display: block; position: sticky; top: var(--hdr, 65px); height: calc(100vh - var(--hdr, 65px)); height: calc(100svh - var(--hdr, 65px)); overflow: hidden; background: #f4f5f7; z-index: 0; }
.ls-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ls-on .ls-chapters { display: block; width: auto; position: relative; z-index: 1; margin-top: calc(-100svh + var(--hdr, 65px)); padding: calc(50svh - var(--hdr, 65px) / 2) 0; pointer-events: none; }
.ls-on .ls-ch { background: none; box-shadow: none; border-radius: 0; overflow: visible; display: flex; align-items: center; min-height: 100svh; width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
.ls-on .ls-copy { pointer-events: auto; width: min(400px, 100%); background: rgba(255, 255, 255, .88); border-radius: var(--r-lg, 22px); box-shadow: var(--shadow-lg); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  opacity: .35; transform: translateY(18px) scale(.985); transition: opacity .5s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.ls-on .ls-ch.is-on .ls-copy { opacity: 1; transform: none; }
.ls-on .ls-cap { position: relative; z-index: 1; margin-top: 0; }

.ls-rail { position: absolute; right: var(--gut); top: 50%; transform: translateY(-50%); list-style: none; display: grid; gap: 10px; justify-items: center; }
.ls-rail li { width: 8px; height: 8px; border-radius: 4px; background: rgba(23, 26, 32, .18); transition: height .4s ease, background-color .4s ease; }
.ls-rail li.on { height: 26px; background: var(--ion); }
.ls-stage-cap { position: absolute; left: var(--gut); bottom: 22px; font: 400 12px/1.4 var(--ui); color: var(--steel); }
.ls-pause { position: absolute; right: var(--gut); bottom: 16px; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 1px var(--line); color: var(--titanium); font: 500 13px/1 var(--ui); cursor: pointer; }
.ls-pause svg { width: 14px; height: 14px; fill: currentColor; }

@media (max-width: 760px) {
  .ls-on .ls-ch { align-items: flex-end; min-height: 92svh; padding-bottom: 8svh; }
  .ls-on .ls-copy { width: 100%; padding: 20px 22px 22px; }
  .ls-on .ls-copy h3 { margin: 10px 0 8px; }
  .ls-on .ls-copy p { font-size: 15px; }
  .ls-rail { display: none; }
  .ls-stage-cap { display: none; }
  .ls-pause { top: 12px; bottom: auto; }
}
