/* ============================================================
   MARKLY - LANDING
   "Marking Engine" - a native macOS utility that broke out
   of the browser. Blackened steel, matte bone, machined chrome.

   Type:  Fraunces (editorial serif)  +  Azeret Mono (utility/data)
   Grid:  8px base · 12 col · 1280 max · 1px hairlines only
   ============================================================ */

/* ---------- 01 · TOKENS ---------- */
:root {
  /* surface */
  --void:      #000000;
  --steel:     #08090a;
  --graphite:  #101214;
  --raise:     #16191c;
  --raise-2:   #1d2124;

  /* ink */
  --bone:      #e9e5dd;
  --ash:       #83868a;
  --dim:       #4d5054;
  --ghost:     #2a2d30;

  /* structure */
  --rule:        rgba(233,229,221,0.085);
  --rule-strong: rgba(233,229,221,0.17);
  --rule-bright: rgba(233,229,221,0.30);

  /* marking semantics (the only chromatic ink on the page) */
  --chalk:  #c3d9bd;   /* mark awarded */
  --oxide:  #a8574a;   /* mark dropped */

  /* machined chrome + iridescence, used only on material edges */
  --chrome: conic-gradient(from 210deg,
              #0b0d0e 0deg, #5f696e 42deg, #dfe4e6 78deg, #7f888d 118deg,
              #0e1112 168deg, #b6bfc3 226deg, #33393c 288deg, #0b0d0e 360deg);
  --irid: linear-gradient(96deg,
              rgba(143,182,201,0.55), rgba(201,191,160,0.55),
              rgba(168,143,168,0.45), rgba(127,168,148,0.55));

  /* metrics */
  --bar-top: 34px;
  --bar-bot: 30px;
  --gut: 28px;
  --max: 1280px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-flat: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- 02 · RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--void);
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--void);
  color: var(--bone);
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
  font-variation-settings: 'SOFT' 20, 'WONK' 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  padding-top: var(--bar-top);
  padding-bottom: var(--bar-bot);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--bone); color: var(--void); }

:focus-visible {
  outline: 1px solid var(--bone);
  outline-offset: 3px;
}

/* film grain - material, not atmosphere */
.mk-grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 03 · TYPE ROLES ---------- */
.mono {
  font-family: 'Azeret Mono', ui-monospace, SFMono-Regular, monospace;
  font-variant-ligatures: none;
}

.mk-label {
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

.mk-h1 {
  font-size: clamp(44px, 7vw, 100px);
  font-weight: 300;
  line-height: 0.94;
  letter-spacing: -0.035em;
  font-variation-settings: 'SOFT' 40, 'WONK' 1, 'opsz' 144;
}
.mk-h1 em {
  font-style: italic;
  font-weight: 500;
  font-variation-settings: 'SOFT' 60, 'WONK' 1, 'opsz' 144;
}

.mk-h2 {
  font-size: clamp(30px, 3.9vw, 50px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-variation-settings: 'SOFT' 40, 'WONK' 1, 'opsz' 96;
}
.mk-h2 em { font-style: italic; font-weight: 500; }

.mk-h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.mk-lead {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.62;
  color: var(--ash);
  letter-spacing: -0.008em;
  max-width: 46ch;
}

.mk-body {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.62;
  color: var(--ash);
  letter-spacing: -0.005em;
  max-width: 44ch;
}

/* ---------- 04 · APP CHROME · MENU BAR ---------- */
.mk-menubar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--bar-top);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 14px;
  background: rgba(8,9,10,0.72);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid var(--rule);
  box-shadow: inset 0 1px 0 rgba(233,229,221,0.05);
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.mk-mark {
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px 0 4px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--bone);
}
.mk-mark::before {
  content: '';
  width: 10px; height: 10px;
  border-radius: 2px;
  background: var(--chrome);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.6);
}

.mk-menu-btn {
  padding: 5px 10px;
  border-radius: 4px;
  color: var(--ash);
  letter-spacing: 0.02em;
  transition: background 0.16s var(--ease-flat), color 0.16s var(--ease-flat);
}
.mk-menu-btn:hover,
.mk-menu-btn[aria-expanded="true"] { background: rgba(233,229,221,0.09); color: var(--bone); }

.mk-menubar-right {
  margin-left: auto;
  display: flex; align-items: center; gap: 18px;
  color: var(--dim);
}
.mk-key {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 6px;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  font-size: 10px;
  color: var(--ash);
  background: rgba(233,229,221,0.03);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.5);
}
.mk-clock { font-variant-numeric: tabular-nums; }
.mk-hide-sm { display: inline-flex; }

/* menu popout */
.mk-popout {
  position: fixed;
  top: calc(var(--bar-top) + 4px);
  z-index: 95;
  min-width: 240px;
  padding: 5px;
  background: rgba(16,18,20,0.92);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.7), inset 0 1px 0 rgba(233,229,221,0.07);
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: 11.5px;
  opacity: 0;
  transform: translateY(-6px) scale(0.985);
  transform-origin: top left;
  pointer-events: none;
  transition: opacity 0.14s var(--ease-flat), transform 0.14s var(--ease-flat);
}
.mk-popout.open { opacity: 1; transform: none; pointer-events: auto; }
.mk-popout a {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 7px 9px;
  border-radius: 5px;
  color: var(--ash);
  transition: background 0.12s, color 0.12s;
}
.mk-popout a:hover { background: rgba(233,229,221,0.1); color: var(--bone); }
.mk-popout a span { color: var(--ghost); font-size: 10.5px; }
.mk-popout a:hover span { color: var(--dim); }
.mk-popout hr { border: 0; border-top: 1px solid var(--rule); margin: 5px 3px; }

/* ---------- 05 · APP CHROME · STATUS BAR ---------- */
.mk-statusbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bar-bot);
  z-index: 90;
  display: flex; align-items: center;
  gap: 16px;
  padding: 0 14px;
  background: rgba(8,9,10,0.78);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-top: 1px solid var(--rule);
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--dim);
  letter-spacing: 0.02em;
}
.mk-status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--chalk);
  flex: none;
}
.mk-log {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ash);
}
.mk-log b { font-weight: 400; color: var(--dim); }
.mk-meter {
  flex: none;
  width: 120px; height: 3px;
  background: rgba(233,229,221,0.09);
  overflow: hidden;
}
.mk-meter i { display: block; height: 100%; width: 0%; background: var(--bone); }
.mk-pct { font-variant-numeric: tabular-nums; width: 34px; text-align: right; }

/* ---------- 06 · LAYOUT ---------- */
.mk-shell { position: relative; z-index: 2; }

/* anchored jumps must clear the menu bar */
[id] { scroll-margin-top: calc(var(--bar-top) + 28px); }

.mk-sec {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gut);
}

.mk-sec-head {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 0 32px;
  padding: 96px 0 48px;
  border-top: 1px solid var(--rule);
}
.mk-sec-head > .mk-label { padding-top: 10px; }
.mk-sec-head .mk-lead { margin-top: 22px; }


/* ---------- 07 · SURFACES ---------- */
.mk-window {
  position: relative;
  background: linear-gradient(180deg, var(--graphite), var(--steel));
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  box-shadow:
    0 1px 0 rgba(233,229,221,0.06) inset,
    0 30px 70px -30px rgba(0,0,0,0.95);
  overflow: hidden;
}
.mk-window-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  height: 32px;
  padding: 0 12px;
  border-bottom: 1px solid var(--rule);
  background: rgba(233,229,221,0.02);
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.mk-window-body { padding: 20px; }

.mk-btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px;
  padding: 0 20px;
  border-radius: 7px;
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: transform 0.18s var(--ease), background 0.18s, border-color 0.18s;
}
.mk-btn-solid {
  background: var(--bone);
  color: var(--void);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.6);
}
.mk-btn-solid:hover { background: #fff; transform: translateY(-1px); }
.mk-btn-solid .mk-key { border-color: rgba(0,0,0,0.25); color: rgba(0,0,0,0.55); background: rgba(0,0,0,0.05); box-shadow: none; }
.mk-btn-ghost {
  border: 1px solid var(--rule-strong);
  color: var(--bone);
  background: rgba(233,229,221,0.02);
}
.mk-btn-ghost:hover { border-color: var(--rule-bright); background: rgba(233,229,221,0.06); }

/* ---------- 08 · HERO ---------- */
.mk-hero {
  padding: clamp(72px, 11vh, 128px) 0 0;
}
.mk-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 56px;
  align-items: end;
}
.mk-hero-kicker {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 28px;
}
.mk-hero-kicker i {
  flex: 1; height: 1px; background: var(--rule); max-width: 120px;
}
.mk-hero h1 { margin-bottom: 30px; }
.mk-hero .mk-lead { max-width: 44ch; }
.mk-hero-cta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 36px;
}
.mk-hero-note {
  margin-top: 16px;
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.02em;
}

/* subject ticker - structural, not decorative */
.mk-ticker {
  margin-top: 88px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.mk-ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: mk-drift 46s linear infinite;
}
.mk-ticker-track span {
  padding: 13px 26px;
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
  border-right: 1px solid var(--rule);
}
@keyframes mk-drift { to { transform: translateX(-50%); } }

/* ---------- 09 · MARK CARD (hero instrument) ---------- */
.mk-q {
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.01em;
  padding-bottom: 18px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--rule);
}
.mk-q small {
  display: block;
  margin-bottom: 10px;
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

.mk-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
}
.mk-row:last-of-type { border-bottom: 0; }
.mk-code {
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding-top: 2px;
}
.mk-row.awarded .mk-code { color: var(--chalk); }
.mk-row.dropped .mk-code { color: var(--oxide); }
.mk-row p {
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--bone);
  letter-spacing: -0.005em;
}
.mk-row .mk-why {
  display: block;
  margin-top: 7px;
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--ash);
  letter-spacing: 0;
}
.mk-row.dropped .mk-why { color: #c08376; }

.mk-tally {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-strong);
}
.mk-tally-num {
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.mk-tally-num i { font-style: normal; color: var(--ghost); }

/* staged entrance */
.mk-stagger > * { opacity: 0; transform: translateY(8px); }
.mk-lit .mk-stagger > * {
  animation: mk-in 0.6s var(--ease) forwards;
}
.mk-lit .mk-stagger > *:nth-child(1) { animation-delay: 0.25s; }
.mk-lit .mk-stagger > *:nth-child(2) { animation-delay: 0.42s; }
.mk-lit .mk-stagger > *:nth-child(3) { animation-delay: 0.59s; }
.mk-lit .mk-stagger > *:nth-child(4) { animation-delay: 0.76s; }
.mk-lit .mk-stagger > *:nth-child(5) { animation-delay: 0.93s; }
@keyframes mk-in { to { opacity: 1; transform: none; } }

/* ---------- 10 · METRIC SLAB ---------- */
.mk-slab {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.mk-slab div {
  padding: 44px 24px 44px 0;
  border-left: 1px solid var(--rule);
  padding-left: 24px;
}
.mk-slab div:first-child { border-left: 0; padding-left: 0; }
.mk-slab b {
  display: block;
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: clamp(40px, 5.4vw, 74px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  margin-bottom: 16px;
}
.mk-slab span {
  display: block;
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  line-height: 1.6;
  max-width: 20ch;
}

/* ---------- 11 · THE ENGINE (sticky scroll instrument) ---------- */
.mk-engine {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 64px;
  align-items: start;
  padding-bottom: 40px;
}
.mk-stage-col { order: 2; }
.mk-steps { order: 1; }

.mk-stage {
  position: sticky;
  top: calc(var(--bar-top) + 40px);
}
.mk-pane-holder { position: relative; min-height: 470px; }
.mk-pane {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.mk-pane.on { opacity: 1; transform: none; pointer-events: auto; }

.mk-step {
  padding: 0 0 26vh;
  opacity: 0.32;
  transition: opacity 0.4s var(--ease-flat);
}
.mk-step:last-child { padding-bottom: 6vh; }
.mk-step.live { opacity: 1; }
.mk-step-n {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px;
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--dim);
}
.mk-step.live .mk-step-n { color: var(--bone); }
.mk-step-n i {
  flex: 1; height: 1px; background: var(--rule);
  transform: scaleX(0.18); transform-origin: left;
  transition: transform 0.6s var(--ease), background 0.4s;
}
.mk-step.live .mk-step-n i { transform: scaleX(1); background: var(--rule-strong); }
.mk-step h3 { margin-bottom: 14px; }

/* pane internals: capture */
.mk-field {
  border: 1px solid var(--rule);
  border-radius: 7px;
  padding: 13px 14px;
  margin-bottom: 10px;
  background: rgba(0,0,0,0.35);
}
.mk-field-label {
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 9px;
}
.mk-field p {
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--bone);
}
.mk-caret {
  display: inline-block;
  width: 7px; height: 14px;
  vertical-align: -2px;
  background: var(--bone);
  animation: mk-blink 1.1s steps(1) infinite;
}
@keyframes mk-blink { 50% { opacity: 0; } }
.mk-drop {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 58px;
  border: 1px dashed var(--rule-strong);
  border-radius: 7px;
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.04em;
}

/* pane internals: tutor */
.mk-quote {
  padding: 11px 13px;
  margin-bottom: 16px;
  border-left: 2px solid var(--oxide);
  background: rgba(168,87,74,0.07);
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: 11.5px;
  font-weight: 300;
  line-height: 1.55;
  color: #cf9c91;
}
.mk-msg { display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 12px; margin-bottom: 16px; }
.mk-avatar {
  width: 24px; height: 24px; border-radius: 5px;
  display: grid; place-items: center;
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: 10px; font-weight: 600;
  border: 1px solid var(--rule-strong);
  color: var(--ash);
  background: rgba(233,229,221,0.03);
}
.mk-msg.generative .mk-avatar { background: var(--chrome); color: #0b0d0e; border-color: transparent; }
.mk-msg p {
  font-size: 14px; font-weight: 300; line-height: 1.6;
  color: var(--bone); letter-spacing: -0.005em;
  padding-top: 2px;
}
.mk-msg.you p { color: var(--ash); }
.mk-ask {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 20px; padding: 12px 14px;
  border: 1px solid var(--rule); border-radius: 7px;
  background: rgba(0,0,0,0.35);
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: 11.5px; color: var(--dim);
}

/* ---------- 12 · MATERIAL BENCH ---------- */
.mk-bench {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
}
.mk-obj {
  padding: 56px 32px 60px;
  border-left: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.mk-obj:first-child { border-left: 0; padding-left: 0; }
.mk-obj:last-child { padding-right: 0; }
.mk-obj-stage {
  height: 220px;
  display: grid;
  place-items: center;
  margin-bottom: 40px;
  position: relative;
}
.mk-obj h3 { margin-bottom: 12px; }
.mk-obj .mk-body { font-size: 14px; }
.mk-obj .mk-label { margin-bottom: 20px; display: block; }

/* chrome sphere */
.mk-sphere {
  width: 156px; height: 156px; border-radius: 50%;
  position: relative;
  overflow: hidden;
  background: #0b0d0e;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.10),
    inset 14px -18px 34px rgba(0,0,0,0.85),
    inset -10px 12px 30px rgba(255,255,255,0.14),
    0 34px 46px -26px rgba(0,0,0,1);
}
.mk-sphere::before {
  content: '';
  position: absolute; inset: -20%;
  background: var(--chrome);
  animation: mk-turn 34s linear infinite;
}
.mk-sphere i {
  position: absolute; inset: 0; border-radius: 50%;
  box-shadow:
    inset 16px -20px 36px rgba(0,0,0,0.8),
    inset -12px 14px 30px rgba(255,255,255,0.12),
    inset 0 0 0 1px rgba(255,255,255,0.12);
}
.mk-sphere::after {
  content: '';
  position: absolute;
  z-index: 2;
  top: 15%; left: 22%;
  width: 34%; height: 22%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 40% 40%, rgba(255,255,255,0.92), rgba(255,255,255,0) 68%);
  filter: blur(1.5px);
}
@keyframes mk-turn { to { transform: rotate(360deg); } }

/* refractive glass block */
.mk-glass {
  width: 150px; height: 178px;
  border-radius: 5px;
  position: relative;
  transform: rotate(-8deg) skewY(-4deg);
  background: var(--irid);
  opacity: 0.92;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.30),
    inset 0 30px 60px rgba(255,255,255,0.16),
    inset 0 -30px 60px rgba(0,0,0,0.55),
    0 30px 50px -28px rgba(0,0,0,1);
  filter: saturate(0.72) contrast(1.12);
}
.mk-glass::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 5px;
  background: linear-gradient(158deg, rgba(255,255,255,0.42) 0 16%, rgba(255,255,255,0) 17% 44%, rgba(255,255,255,0.24) 45% 50%, rgba(255,255,255,0) 51%);
}
.mk-glass::after {
  content: '';
  position: absolute; left: 12%; right: 12%; bottom: -26px; height: 26px;
  background: linear-gradient(180deg, rgba(190,205,200,0.28), transparent);
  filter: blur(7px);
}

/* dented steel slab */
.mk-slabmat {
  width: 190px; height: 150px;
  border-radius: 4px;
  transform: rotate(6deg);
  background:
    radial-gradient(circle at 28% 34%, rgba(0,0,0,0.75) 0 8px, rgba(255,255,255,0.10) 9px 15px, transparent 16px),
    radial-gradient(circle at 66% 62%, rgba(0,0,0,0.7) 0 11px, rgba(255,255,255,0.09) 12px 19px, transparent 20px),
    radial-gradient(circle at 80% 24%, rgba(0,0,0,0.6) 0 6px, rgba(255,255,255,0.08) 7px 12px, transparent 13px),
    repeating-linear-gradient(94deg, #16191b 0 2px, #101315 2px 3px, #1b1f21 3px 5px),
    linear-gradient(150deg, #2a2f31, #0a0c0d);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    inset 0 -1px 0 rgba(0,0,0,0.8),
    0 30px 44px -26px rgba(0,0,0,1);
}

/* ---------- 13 · SPATIAL RAIL ---------- */
.mk-rail-track { position: relative; }
.mk-rail-pin {
  position: sticky;
  top: calc(var(--bar-top) + 11vh);
  overflow: hidden;
}
.mk-rail-strip {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
  transition: transform 0.06s linear;
}
.mk-rail-card {
  width: 400px;
  flex: none;
  display: flex;
  flex-direction: column;
}
.mk-rail-card .mk-window-body { flex: 1; }
.mk-rail-head {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 18px;
}
.mk-rail-head .mk-label { color: var(--ghost); }
.mk-rail-card h3 { margin-bottom: 10px; }
.mk-rail-card .mk-body { font-size: 13.5px; max-width: none; margin-bottom: 20px; }
.mk-rail-progress {
  display: flex; align-items: center; gap: 14px;
  margin-top: 28px;
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--dim);
}
.mk-rail-progress i { flex: 1; height: 1px; background: rgba(233,229,221,0.09); position: relative; }
.mk-rail-progress i b { position: absolute; inset: 0 auto 0 0; width: 24%; background: var(--bone); }

/* rail card internals */
.mk-mini {
  border: 1px solid var(--rule);
  border-radius: 7px;
  padding: 14px;
  background: rgba(0,0,0,0.35);
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: 11.5px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ash);
}
.mk-mini + .mk-mini { margin-top: 8px; }
.mk-mini strong { color: var(--bone); font-weight: 500; }
.mk-choice {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  margin-top: 7px;
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: 11.5px;
  color: var(--ash);
}
.mk-choice.right { border-color: rgba(195,217,189,0.4); color: var(--chalk); background: rgba(195,217,189,0.06); }
.mk-gauge { display: flex; gap: 3px; margin-top: 8px; }
.mk-gauge i { flex: 1; height: 4px; background: rgba(233,229,221,0.08); }
.mk-gauge i.on { background: var(--bone); }
.mk-gauge i.mid { background: var(--ash); }
.mk-meta {
  display: flex; justify-content: space-between;
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--dim);
  margin-top: 14px;
}

/* ---------- 14 · LICENCE / PRICING ---------- */
.mk-licence {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 0;
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--graphite), var(--steel));
  box-shadow: 0 1px 0 rgba(233,229,221,0.06) inset, 0 40px 90px -50px rgba(0,0,0,1);
}
.mk-licence-left {
  padding: 44px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}
.mk-licence-foot {
  margin-top: auto;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.9;
  color: var(--ghost);
}
.mk-licence-right { padding: 44px; }
.mk-price {
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: 84px;
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.86;
  margin: 26px 0 12px;
  font-variant-numeric: tabular-nums;
}
.mk-price span { font-size: 15px; font-weight: 400; letter-spacing: 0.08em; color: var(--dim); vertical-align: 14px; }
.mk-incl { border-top: 1px solid var(--rule); }
.mk-incl li {
  list-style: none;
  display: grid;
  grid-template-columns: 22px minmax(0,1fr);
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14.5px;
  font-weight: 300;
  color: var(--ash);
  letter-spacing: -0.005em;
}
.mk-incl li b { color: var(--bone); font-weight: 500; }
.mk-incl li i {
  font-style: normal;
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--chalk);
  padding-top: 3px;
}

/* trial ladder */
.mk-ladder { border-top: 1px solid var(--rule); margin-top: 56px; }
.mk-rung {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 32px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
}
.mk-rung > .mk-label { color: var(--ash); }
.mk-rung h3 { font-size: 18px; }
.mk-rung p { font-size: 14px; font-weight: 300; color: var(--ash); margin-top: 7px; letter-spacing: -0.005em; }
.mk-rung .mk-cost {
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: 12px; letter-spacing: 0.1em; color: var(--dim);
  white-space: nowrap;
}

/* ---------- 15 · CLOSE + FOOTER ---------- */
.mk-close {
  padding: 128px 0 120px;
  border-top: 1px solid var(--rule);
  text-align: center;
}
.mk-close h2 { max-width: 16ch; margin: 0 auto 30px; }
.mk-close .mk-lead { margin: 0 auto 40px; text-align: center; }
.mk-close-cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.mk-footer {
  border-top: 1px solid var(--rule);
  padding: 34px 0 56px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.mk-footer a:hover { color: var(--bone); }
.mk-footer-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

/* ---------- 16 · REVEAL ---------- */
.mk-rev {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.mk-rev.in { opacity: 1; transform: none; }
.mk-rev[data-d="1"] { transition-delay: 0.08s; }
.mk-rev[data-d="2"] { transition-delay: 0.16s; }
.mk-rev[data-d="3"] { transition-delay: 0.24s; }

/* ---------- 17 · CURSOR CROSSHAIR ---------- */
.mk-cross {
  position: fixed;
  top: 0; left: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  will-change: transform;
}
.mk-cross.on { opacity: 1; }
.mk-cross i {
  position: absolute;
  background: rgba(233,229,221,0.22);
}
.mk-cross .h { left: -13px; top: 0; width: 26px; height: 1px; }
.mk-cross .v { top: -13px; left: 0; width: 1px; height: 26px; }
.mk-cross b {
  position: absolute;
  left: 16px; top: 10px;
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--dim);
  white-space: nowrap;
}
@media (hover: none), (pointer: coarse) { .mk-cross { display: none; } }

/* ---------- 18 · RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .mk-hero-grid { grid-template-columns: 1fr; gap: 48px; align-items: start; }
  .mk-engine { grid-template-columns: 1fr; gap: 32px; }
  .mk-stage-col { order: 1; }
  .mk-steps { order: 2; }
  .mk-licence { grid-template-columns: 1fr; }
  .mk-licence-left { border-right: 0; border-bottom: 1px solid var(--rule); }
  .mk-bench { grid-template-columns: 1fr; }
  .mk-obj { border-left: 0; padding: 44px 0 48px; }
}

@media (max-width: 760px) {
  :root { --gut: 18px; }
  .mk-sec-head { grid-template-columns: 1fr; gap: 16px; padding: 72px 0 36px; }
  .mk-sec-head > .mk-label { padding-top: 0; }
  .mk-slab { grid-template-columns: 1fr 1fr; }
  .mk-slab div { padding: 28px 16px 28px 0; }
  .mk-slab div:nth-child(3) { border-left: 0; padding-left: 0; }
  .mk-slab div:nth-child(3), .mk-slab div:nth-child(4) { border-top: 1px solid var(--rule); }
  .mk-licence-left, .mk-licence-right { padding: 28px; }
  .mk-price { font-size: 64px; }
  .mk-rung { grid-template-columns: 1fr; gap: 8px; }
  .mk-rung .mk-cost { margin-top: 6px; }
  .mk-hide-sm { display: none; }
  .mk-menubar { gap: 0; padding: 0 10px; }
  .mk-stage { position: static; }
  .mk-pane-holder { min-height: 0; }
  .mk-pane { position: relative; opacity: 1; transform: none; pointer-events: auto; }
  .mk-pane + .mk-pane { margin-top: 12px; }
  .mk-step { padding-bottom: 40px; opacity: 1; }
  .mk-step-n i { transform: scaleX(1); }
  .mk-rail-pin { position: static; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 12px; }
  .mk-rail-progress { display: none; }
  .mk-rail-strip { transform: none !important; padding-right: 18px; }
  .mk-rail-card { width: 78vw; scroll-snap-align: start; }
  .mk-close { padding: 88px 0 80px; }
  .mk-tally-num { font-size: 32px; }
}

/* ---------- 19 · MOTION PREFERENCE ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .mk-rev { opacity: 1; transform: none; }
  .mk-pane { opacity: 1; position: relative; transform: none; }
  .mk-pane + .mk-pane { margin-top: 12px; }
  .mk-pane-holder { min-height: 0; }
  .mk-stage { position: static; }
  .mk-step { opacity: 1; padding-bottom: 40px; }
  .mk-step-n i { transform: scaleX(1); }
  .mk-stagger > * { opacity: 1; transform: none; }
  .mk-rail-pin { position: static; overflow-x: auto; }
  .mk-rail-strip { transform: none !important; }
}

/* ---------- 20 · RAIL TRACK LENGTH + BAR CTA ---------- */
.mk-rail-track { height: 280vh; }

.mk-bar-cta {
  display: inline-flex; align-items: center; gap: 8px;
  height: 24px; padding: 0 11px;
  border-radius: 5px;
  background: var(--bone); color: var(--void);
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.05em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
.mk-bar-cta:hover { background: #fff; }
@media (max-width: 760px) { .mk-rail-track { height: auto; } }

/* ============================================================
   21 · CINEMA - footage as material
   Three clips, three registers: the mesh is the canvas, the
   void is the problem, the specimen is the method. All muted,
   all looping, all treated as surfaces rather than decoration.
   ============================================================ */

.mk-footage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--void);
}

/* ---------- 22 · HERO · MESH BACKDROP ---------- */
.mk-hero-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.mk-hero-bg {
  position: absolute;
  inset: calc(-1 * var(--bar-top)) 0 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
/* the clip is portrait and its mid-band is empty black - crop to the
   near-field floor lattice so the hero sits on a receding ground plane */
.mk-hero-bg .mk-footage {
  object-position: 50% 94%;
  opacity: 0.62;
  filter: contrast(1.25) brightness(1.05);
}
/* keep the lattice off the headline: solid at the top, open at the fold */
.mk-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #000 0%, rgba(0,0,0,0.94) 34%, rgba(0,0,0,0.55) 62%, rgba(0,0,0,0.82) 88%, #000 100%),
    radial-gradient(62% 40% at 26% 40%, rgba(0,0,0,0.9), rgba(0,0,0,0) 72%);
}
.mk-hero > * { position: relative; z-index: 1; }

/* ---------- 23 · SCENE - the pinned chapter ---------- */
.mk-scene { position: relative; }
.mk-scene-track { position: relative; height: var(--track, 340vh); }

.mk-scene-pin {
  position: sticky;
  top: var(--bar-top);
  height: calc(100vh - var(--bar-top) - var(--bar-bot));
  min-height: 560px;
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.mk-scene-media { position: absolute; inset: 0; z-index: 0; }
.mk-scene-media .mk-footage { opacity: 0.9; }

/* no footage yet for this chapter - an absence rendered as texture,
   not a blank frame. A slow charcoal drift with a static-grain field,
   standing in for "nobody says where the marks went". */
.mk-scene-media-void { background: var(--void); }
.mk-void-field {
  position: absolute; inset: -6%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(46% 60% at 32% 46%, rgba(45,50,54,0.5), rgba(0,0,0,0) 72%),
    radial-gradient(70% 80% at 78% 70%, rgba(20,23,25,0.6), rgba(0,0,0,0) 68%);
  opacity: 0.16;
  mix-blend-mode: screen;
  animation: mk-void-drift 26s linear infinite;
}
@keyframes mk-void-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-1.5%, 1%, 0) scale(1.03); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}
.mk-scene-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, #000 0%, rgba(0,0,0,0.86) 26%, rgba(0,0,0,0.1) 62%, rgba(0,0,0,0.45) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.8), rgba(0,0,0,0) 26%, rgba(0,0,0,0) 68%, rgba(0,0,0,0.9));
}

.mk-scene-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 78px var(--gut) 74px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 232px;
  align-items: center;
  gap: 56px;
}

/* scene chrome - readouts pinned to the frame, not the grid */
.mk-scene-hud {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
.mk-scene-hud span { position: absolute; white-space: nowrap; }
.mk-scene-hud .tl { top: 18px; left: var(--gut); color: var(--ash); }
.mk-scene-hud .tr { top: 18px; right: var(--gut); }
.mk-scene-hud .bl { bottom: 18px; left: var(--gut); }
.mk-scene-hud .br { bottom: 18px; right: var(--gut); font-variant-numeric: tabular-nums; }

.mk-scene-prog {
  position: absolute;
  z-index: 3;
  left: var(--gut); right: var(--gut);
  bottom: 40px;
  height: 1px;
  background: rgba(233,229,221,0.1);
}
.mk-scene-prog i { display: block; height: 100%; width: 0%; background: var(--bone); }

/* ---------- 24 · BEATS - the stanza that accumulates ---------- */
.mk-beats {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: min(560px, 46vw);
}
.mk-beat {
  font-size: clamp(21px, min(3.1vw, 4.4vh), 41px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.032em;
  font-variation-settings: 'SOFT' 40, 'WONK' 1, 'opsz' 120;
  color: var(--bone);
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.mk-beat.seen { opacity: 0.26; transform: none; }
.mk-beat.now  { opacity: 1; transform: none; }
.mk-beat em { font-style: italic; font-weight: 500; }
.mk-beat b {
  display: block;
  margin-bottom: 12px;
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- 25 · SCENE INSTRUMENT - the brutalist tally ---------- */
.mk-inst {
  border-left: 1px solid var(--rule-strong);
  padding-left: 22px;
  align-self: center;
}
.mk-inst-row + .mk-inst-row { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--rule); }
.mk-inst .mk-label { display: block; margin-bottom: 14px; }
.mk-figure {
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: clamp(42px, min(6vw, 8.6vh), 84px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.84;
  font-variant-numeric: tabular-nums;
  color: var(--bone);
}
.mk-figure i { font-style: normal; font-size: 0.32em; letter-spacing: 0.02em; color: var(--ghost); vertical-align: 0.9em; }
.mk-figure.oxide { color: var(--oxide); }
.mk-inst-note {
  margin-top: 14px;
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--dim);
}

/* ---------- 26 · SCENE III · THE READ (contained player) ---------- */
.mk-read {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: 60px;
  align-items: center;
  height: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px var(--gut);
  position: relative;
  z-index: 2;
}
.mk-read h2 { margin-bottom: 20px; }
.mk-read .mk-label { display: block; margin-bottom: 22px; }

/* the scheme readout - lights in lockstep with the markers */
.mk-scheme { margin-top: 34px; border-top: 1px solid var(--rule); max-width: 46ch; }
.mk-scheme-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  padding: 13px 2px;
  border-bottom: 1px solid var(--rule);
  opacity: 0.3;
  transition: opacity 0.45s var(--ease-flat);
}
.mk-scheme-row.on { opacity: 1; }
.mk-scheme-row .mk-code { color: var(--dim); }
.mk-scheme-row.on.awarded .mk-code { color: var(--chalk); }
.mk-scheme-row.on.dropped .mk-code { color: var(--oxide); }
.mk-scheme-row p {
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--bone);
}
.mk-scheme-row .mk-verdict {
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ghost);
}
.mk-scheme-row.on.awarded .mk-verdict { color: var(--chalk); }
.mk-scheme-row.on.dropped .mk-verdict { color: var(--oxide); }

/* the player is height-bound: it must never outgrow the pinned frame */
.mk-player {
  width: 100%;
  max-width: min(430px, 54vh);
  margin-inline: auto;
}
.mk-player-stage {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--void);
  overflow: hidden;
}
.mk-player-stage .mk-footage { opacity: 0.96; }

/* corner brackets - a viewfinder, not a frame */
.mk-brackets { position: absolute; inset: 14px; z-index: 2; pointer-events: none; }
.mk-brackets i {
  position: absolute;
  width: 15px; height: 15px;
  border: 0 solid rgba(233,229,221,0.5);
}
.mk-brackets i:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.mk-brackets i:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.mk-brackets i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.mk-brackets i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

/* measurement markers dropped onto the footage */
.mk-marker {
  position: absolute;
  z-index: 3;
  left: var(--x); top: var(--y);
  display: flex; align-items: center; gap: 9px;
  transform: translate(-50%, -50%) scale(0.94);
  opacity: 0;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  white-space: nowrap;
}
.mk-marker.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.mk-marker::before {
  content: '';
  flex: none;
  width: 7px; height: 7px;
  border: 1px solid var(--bone);
  background: rgba(0,0,0,0.55);
}
.mk-marker b {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 8px;
  border: 1px solid var(--rule-strong);
  background: rgba(8,9,10,0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone);
}
.mk-marker b s { text-decoration: none; color: var(--dim); letter-spacing: 0.1em; }
.mk-marker.awarded::before { border-color: var(--chalk); }
.mk-marker.awarded b { color: var(--chalk); }
.mk-marker.dropped::before { border-color: var(--oxide); }
.mk-marker.dropped b { color: #c08376; }

.mk-player-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 11px 12px;
  border-top: 1px solid var(--rule);
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

/* ---------- 27 · CHAPTER READOUT IN THE STATUS BAR ---------- */
.mk-chapter {
  flex: none;
  padding-right: 14px;
  border-right: 1px solid var(--rule);
  color: var(--ash);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- 28 · CINEMA RESPONSIVE + MOTION ---------- */
@media (max-width: 1080px) {
  .mk-scene-inner { grid-template-columns: 1fr; gap: 40px; align-content: center; }
  .mk-inst { border-left: 0; border-top: 1px solid var(--rule-strong); padding-left: 0; padding-top: 26px; }
  .mk-inst-row { display: inline-block; vertical-align: top; margin-right: 48px; }
  .mk-inst-row + .mk-inst-row { margin-top: 0; padding-top: 0; border-top: 0; }
  .mk-read { grid-template-columns: 1fr; gap: 36px; }
  .mk-player { max-width: 320px; }
}

@media (max-width: 760px) {
  .mk-scene-track { height: auto; }
  .mk-scene-pin { position: relative; height: auto; min-height: 0; padding: 0; }
  .mk-chapter { display: none; }
  .mk-player { max-width: 320px; }
  .mk-scene-shade {
    background:
      linear-gradient(180deg, rgba(0,0,0,0.72), rgba(0,0,0,0.9) 40%, rgba(0,0,0,0.95));
  }
  .mk-scene-inner { padding: 72px var(--gut) 64px; }
  .mk-beats { max-width: none; }
  .mk-beat { opacity: 1 !important; transform: none !important; font-size: clamp(24px, 6.6vw, 34px); }
  .mk-scene-hud .tr, .mk-scene-hud .bl, .mk-scene-hud .br { display: none; }
  .mk-scene-hud .tl { position: static; display: block; padding: 16px var(--gut) 0; }
  .mk-scene-prog { display: none; }
  .mk-read { padding: 64px var(--gut) 56px; }
  .mk-scheme-row { opacity: 1; }
  .mk-marker { opacity: 1; transform: translate(-50%, -50%); }
  .mk-hero-bg .mk-footage { opacity: 0.34; }
}

@media (prefers-reduced-motion: reduce) {
  .mk-scene-track { height: auto; }
  .mk-scene-pin { position: relative; height: auto; min-height: 0; overflow: visible; }
  .mk-player { max-width: 380px; }
  .mk-beat { opacity: 1 !important; transform: none !important; }
  .mk-scheme-row { opacity: 1; }
  .mk-marker { opacity: 1; transform: translate(-50%, -50%); }
}