/* Marks: the book, performed. Page styles for /marks.html (scoped .mk-) */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --mk-paper: #FFFFFF;
  --mk-cream: #F5F5F0;
  --mk-ink: #161616;
  --mk-muted: #5E5E5A;
  --mk-faint: #6B6B66;
  --mk-line: #E4E4DE;
  --mk-teal: #00A89D;
  --mk-teal-ink: #00756D;
  --mk-blue: #0099D6;
  --mk-night: #101211;
  --mk-serif: "Instrument Serif", "Libre Baskerville", Georgia, serif;
  --mk-sans: "Manrope", "Inter", -apple-system, "Segoe UI", sans-serif;
  --mk-ease: cubic-bezier(.2, .8, .2, 1);
  --mk-gutter: clamp(16px, 4vw, 56px);
}

.mk-page { background: var(--mk-paper); color: var(--mk-ink); font-family: var(--mk-sans); --mk-head: 0px; }
.mk-page main { overflow-x: clip; background: var(--mk-paper); }
.mk-page main h1, .mk-page main h2, .mk-page main h3 { text-transform: none; letter-spacing: 0; font-weight: 400; font-family: var(--mk-serif) !important; color: var(--mk-ink); display: block; }
.mk-page main blockquote { font-style: normal; text-align: left; background: none; color: var(--mk-ink); }
.mk-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mk-overline { display: block; font: 600 12px/1.2 var(--mk-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--mk-teal-ink); margin: 0 0 14px; }
.mk-page .mk-h2 { font: 400 clamp(40px, 6.4vw, 92px)/.98 var(--mk-serif); color: var(--mk-ink); margin: 0 0 18px; letter-spacing: -.01em; }
.mk-lede { font: 400 clamp(16px, 1.35vw, 19px)/1.6 var(--mk-sans); color: var(--mk-muted); max-width: 34em; margin: 0; }
.mk-page a:focus-visible, .mk-page button:focus-visible, .mk-page [tabindex]:focus-visible, .mk-page input:focus-visible, .mk-page summary:focus-visible { outline: 3px solid rgba(0, 168, 157, .55); outline-offset: 3px; }
.mk-btn { display: inline-flex; align-items: center; gap: 10px; font: 600 15px/1 var(--mk-sans); padding: 16px 26px; border-radius: 999px; border: 1.5px solid var(--mk-ink); background: var(--mk-ink); color: #fff; cursor: pointer; text-decoration: none; transition: transform .3s var(--mk-ease), background .3s, color .3s, border-color .3s; }
.mk-btn:hover { transform: translateY(-2px); color: #fff; text-decoration: none; }
.mk-btn--ghost { background: transparent; color: var(--mk-ink); border-color: #CFCFC8; }
.mk-btn--ghost:hover { color: var(--mk-ink); border-color: var(--mk-ink); }
.mk-btn--teal { background: var(--mk-teal-ink); border-color: var(--mk-teal-ink); }

/* ------------------------------------------------------------------ gate */
.mk-gate { display: none; }
html.mk-gate-on .mk-gate { display: flex; position: fixed; inset: 0; z-index: 10000; background: var(--mk-paper); align-items: center; justify-content: center; padding: 24px; text-align: center; }
html.mk-gate-on, html.mk-gate-on body { overflow: hidden; }
.mk-gate__inner { display: flex; flex-direction: column; align-items: center; max-width: 640px; }
.mk-gate__by { font: 500 13px/1 var(--mk-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--mk-muted); margin: 0 0 26px; }
.mk-gate__strobe { position: relative; width: min(300px, 70vw); aspect-ratio: 4 / 3; margin: 0 0 6px; }
.mk-gate__strobe canvas { width: 100%; height: 100%; display: block; }
.mk-gate__count { position: absolute; right: -4px; bottom: -6px; font: 600 12px/1 var(--mk-sans); font-variant-numeric: tabular-nums; letter-spacing: .12em; color: var(--mk-teal-ink); }
.mk-gate__title { font: 400 clamp(96px, 17vw, 210px)/.9 var(--mk-serif); margin: 0; color: var(--mk-ink); letter-spacing: -.02em; }
.mk-gate__lead { font: 400 17px/1.5 var(--mk-sans); color: var(--mk-muted); margin: 14px 0 30px; }
.mk-gate__choices { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.mk-gate__fine { font: 400 13px/1.5 var(--mk-sans); color: var(--mk-muted); margin: 20px 0 0; }
.mk-gate.is-playing .mk-gate__choices, .mk-gate.is-playing .mk-gate__fine, .mk-gate.is-playing .mk-gate__lead { opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .4s, transform .4s; }
.mk-gate.is-leaving { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s cubic-bezier(.76, 0, .24, 1); }
.mk-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.mk-eq i { display: block; width: 3px; height: 30%; background: currentColor; border-radius: 1px; }
.mk-eq.is-live i { animation: mk-eq 1s ease-in-out infinite; }
.mk-eq.is-live i:nth-child(2) { animation-delay: -.3s; }
.mk-eq.is-live i:nth-child(3) { animation-delay: -.6s; }
.mk-eq.is-live i:nth-child(4) { animation-delay: -.15s; }
@keyframes mk-eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }

/* ------------------------------------------------------------------ hero (the cover, live) */
.mk-hero { position: relative; min-height: 100svh; box-sizing: border-box; padding: 104px var(--mk-gutter) 30px; background: var(--mk-paper); display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: 1fr auto 1fr auto; gap: 10px 2vw; align-items: center; }
.mk-ghost { margin: 0; display: flex; align-items: center; justify-content: center; height: 100%; min-height: 70px; }
.mk-ghost img { max-width: min(220px, 100%); max-height: 110px; width: auto; height: auto; filter: grayscale(1) contrast(.9); opacity: .16; mix-blend-mode: multiply; }
.mk-ghost:nth-child(1) { grid-area: 1 / 1; } .mk-ghost:nth-child(2) { grid-area: 1 / 2; } .mk-ghost:nth-child(3) { grid-area: 1 / 3; } .mk-ghost:nth-child(4) { grid-area: 1 / 4; } .mk-ghost:nth-child(5) { grid-area: 1 / 5; }
.mk-ghost:nth-child(6) { grid-area: 2 / 1; } .mk-ghost:nth-child(7) { grid-area: 2 / 5; }
.mk-ghost:nth-child(8) { grid-area: 3 / 1; } .mk-ghost:nth-child(9) { grid-area: 3 / 2; } .mk-ghost:nth-child(10) { grid-area: 3 / 3; } .mk-ghost:nth-child(11) { grid-area: 3 / 4; } .mk-ghost:nth-child(12) { grid-area: 3 / 5; }
.mk-ghosts { display: contents; }
.mk-hero__center { grid-area: 2 / 2 / 3 / 5; text-align: center; }
.mk-page .mk-hero__title { margin: 0; color: var(--mk-ink); line-height: 1; }
.mk-hero__word { display: block; font: 400 clamp(110px, 17vw, 260px)/.86 var(--mk-serif); letter-spacing: -.02em; }
.mk-hero__sub { display: block; font: 500 clamp(15px, 1.3vw, 18px)/1.4 var(--mk-sans); margin-top: 22px; color: var(--mk-ink); letter-spacing: 0; text-transform: none; }
.mk-hero__stats { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 26px; padding: 0; margin: 18px 0 0; font: 400 14px/1.4 var(--mk-sans); color: var(--mk-muted); }
.mk-hero__stats b { font-weight: 600; color: var(--mk-ink); font-variant-numeric: tabular-nums; }
.mk-hero__foot { grid-area: 4 / 1 / 5 / 6; display: flex; justify-content: space-between; align-items: flex-end; }
.mk-hero__by { font: 500 15px/1 var(--mk-sans); margin: 0; }
.mk-hero__cue { font: 600 12px/1 var(--mk-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--mk-muted); text-decoration: none; display: inline-flex; flex-direction: column; align-items: center; gap: 10px; }
.mk-hero__cue::after { content: ""; width: 1px; height: 38px; background: linear-gradient(var(--mk-ink), transparent); animation: mk-cue 2.2s var(--mk-ease) infinite; transform-origin: top; }
@keyframes mk-cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.mk-hero__mark { width: 42px; height: 42px; }

/* ------------------------------------------------------------------ about the book */
.mk-about { padding: clamp(80px, 14vh, 160px) var(--mk-gutter); max-width: 1180px; margin: 0 auto; }
.mk-page .mk-about__intro { font: 400 clamp(28px, 3.6vw, 54px)/1.18 var(--mk-serif); color: var(--mk-ink); margin: 0; padding: 0; border: 0; }
.mk-page .mk-about__intro p { font: inherit; color: inherit; font-style: normal; }
.mk-about__sig { font: 500 14px/1.4 var(--mk-sans); color: var(--mk-muted); margin: 28px 0 0; }

/* ------------------------------------------------------------------ chapter shell */
.mk-chapter { position: relative; }
.mk-stage { position: relative; min-height: calc(100svh - var(--mk-head)); background: inherit; padding: clamp(28px, 6vh, 64px) var(--mk-gutter); box-sizing: border-box; }

/* ------------------------------------------------------------------ 1. the book */
.mk-book { background: var(--mk-cream); }
.mk-book .mk-stage { display: flex; flex-direction: column; overflow: hidden; }
.mk-book__head { max-width: 640px; }
.mk-book__scene { flex: 1; display: flex; align-items: center; justify-content: center; perspective: 2400px; min-height: 0; padding: 10px 0; }
.mk-book__book { --pw: min(31vw, 46svh * .865, 420px); position: relative; width: calc(var(--pw) * 2); height: calc(var(--pw) * 1.1556); transform-style: preserve-3d; }
.mk-leaf { position: absolute; left: 50%; top: 0; width: 50%; height: 100%; transform-origin: 0 50%; transform-style: preserve-3d; }
.mk-leaf__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #fff; overflow: hidden; }
.mk-leaf__face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-leaf__front { box-shadow: 0 30px 50px -30px rgba(20, 20, 18, .45); }
.mk-leaf__front::after, .mk-leaf__back::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--shade, 0); background: linear-gradient(90deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, 0) 60%); }
.mk-leaf__back { transform: rotateY(180deg); }
.mk-leaf__back::after { background: linear-gradient(270deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, 0) 60%); }
.mk-leaf__front::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 18px; z-index: 1; background: linear-gradient(90deg, rgba(0, 0, 0, .10), transparent); pointer-events: none; }
.mk-book__caption { min-height: 3em; text-align: center; font: 400 15px/1.5 var(--mk-sans); color: var(--mk-muted); margin: 0 auto; max-width: 560px; }
.mk-book__caption b { color: var(--mk-ink); font-weight: 600; }
.mk-book__static { display: none; }

/* ------------------------------------------------------------------ 2. drawn */
.mk-draw .mk-stage { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 72px); align-items: center; }
.mk-draw__art { position: relative; aspect-ratio: 1 / 1; max-height: 78svh; width: 100%; margin: 0 auto; }
.mk-draw__svg { position: absolute; inset: 6%; display: flex; align-items: center; justify-content: center; opacity: 0; }
.mk-draw__svg:first-child { opacity: 1; }
.mk-draw__svg svg { width: 100%; height: 100%; overflow: visible; }
.mk-draw__svg .mk-guides * { fill: none; stroke: var(--mk-teal); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .7; }
.mk-draw__svg .mk-guides .mk-guide-soft { opacity: .35; stroke-dasharray: 3 4; }
.mk-draw__list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; }
.mk-draw__item { grid-area: 1 / 1; opacity: 0; visibility: hidden; }
.mk-draw__item:first-child { opacity: 1; visibility: visible; }
.mk-draw__num { font: 600 12px/1 var(--mk-sans); letter-spacing: .14em; color: var(--mk-teal-ink); font-variant-numeric: tabular-nums; }
.mk-page .mk-draw__item h3 { font: 400 clamp(30px, 3vw, 44px)/1.05 var(--mk-serif); margin: 10px 0 8px; color: var(--mk-ink); }
.mk-meta { font: 500 13px/1.4 var(--mk-sans); color: var(--mk-muted); margin: 0 0 14px; }
.mk-draw__item p.mk-note { font: 400 16px/1.65 var(--mk-sans); color: var(--mk-muted); margin: 0 0 16px; max-width: 32em; }
.mk-link { font: 600 14px/1.4 var(--mk-sans); color: var(--mk-teal-ink); text-decoration: none; border-bottom: 1px solid rgba(0, 117, 109, .35); }
.mk-link:hover { color: var(--mk-teal-ink); border-color: var(--mk-teal-ink); text-decoration: none; }
.mk-draw__bar { height: 2px; background: var(--mk-line); margin-top: 30px; max-width: 320px; position: relative; overflow: hidden; }
.mk-draw__bar i { position: absolute; inset: 0; background: var(--mk-teal); transform-origin: left; transform: scaleX(0); }

/* ------------------------------------------------------------------ 3. forms */
.mk-forms { background: var(--mk-paper); }
.mk-forms .mk-stage { display: flex; flex-direction: column; gap: 18px; }
.mk-forms__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.mk-forms__wrap { position: relative; flex: 1; min-height: 52svh; }
.mk-forms__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.mk-forms__label { position: absolute; top: 0; left: 0; font: 400 clamp(20px, 2vw, 30px)/1 var(--mk-serif); color: var(--mk-ink); white-space: nowrap; opacity: 0; pointer-events: none; }
.mk-forms__label b { font: 600 12px/1 var(--mk-sans); letter-spacing: .1em; color: var(--mk-teal-ink); margin-left: 8px; font-variant-numeric: tabular-nums; vertical-align: middle; }
.mk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-chip { font: 600 13px/1 var(--mk-sans); padding: 10px 14px; border-radius: 999px; border: 1.5px solid #D6D6CF; background: #fff; color: var(--mk-ink); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.mk-chip:hover { border-color: var(--mk-ink); }
.mk-chip[aria-pressed="true"] { background: var(--mk-ink); color: #fff; border-color: var(--mk-ink); }
.mk-chip span { opacity: .8; margin-left: 4px; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ 4. family */
.mk-family { background: var(--mk-cream); }
.mk-family .mk-stage { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3vw; align-items: center; overflow: hidden; }
.mk-family__orbit { position: relative; aspect-ratio: 1 / 1; width: 100%; max-height: 84svh; margin: 0 auto; }
.mk-family__parent { position: absolute; left: 50%; top: 50%; width: 30%; transform: translate(-50%, -50%); z-index: 2; }
.mk-family__parent svg { width: 100%; height: auto; display: block; overflow: visible; }
.mk-tile { position: absolute; left: 50%; top: 50%; background-repeat: no-repeat; border-radius: 8px; background-color: #fff; box-shadow: 0 10px 24px -16px rgba(20, 20, 18, .45); will-change: transform; }
.mk-family .mk-tile { width: var(--tw, 116px); height: calc(var(--tw, 116px) * .75); margin: calc(var(--tw, 116px) * -.375) 0 0 calc(var(--tw, 116px) * -.5); opacity: 0; }
.mk-family__count { font: 400 clamp(64px, 8vw, 120px)/1 var(--mk-serif); color: var(--mk-ink); font-variant-numeric: tabular-nums; margin: 18px 0 0; }
.mk-family__count small { font: 500 14px/1.4 var(--mk-sans); color: var(--mk-muted); display: block; margin-top: 6px; }

/* ------------------------------------------------------------------ 5. pairs */
.mk-pairs .mk-stage { min-height: 0; padding-top: clamp(80px, 12vh, 140px); padding-bottom: clamp(80px, 12vh, 140px); }
.mk-pairs__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 48px); margin-top: 40px; }
.mk-pair__frame { position: relative; aspect-ratio: 450 / 260; background: #fff; border: 1px solid var(--mk-line); border-radius: 4px; overflow: hidden; cursor: ew-resize; touch-action: pan-y; user-select: none; box-shadow: 0 30px 50px -34px rgba(20, 20, 18, .5); }
.mk-pair__page { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mk-pair__page--a { left: 0; width: var(--v, 50%); background: linear-gradient(270deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, 0) 14%), #fff; }
.mk-pair__page--b { right: 0; left: var(--v, 50%); background: linear-gradient(90deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, 0) 14%), #fff; }
.mk-pair__img { width: 74%; height: 70%; object-fit: contain; pointer-events: none; transition: none; }
.mk-pair__no { position: absolute; bottom: 10px; font: 500 11px/1 var(--mk-sans); color: var(--mk-faint); font-variant-numeric: tabular-nums; }
.mk-pair__page--a .mk-pair__no { left: 14px; } .mk-pair__page--b .mk-pair__no { right: 14px; }
.mk-pair__handle { position: absolute; top: 0; bottom: 0; left: var(--v, 50%); width: 2px; margin-left: -1px; background: var(--mk-teal); z-index: 2; }
.mk-pair__handle::after { content: "\2194"; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: var(--mk-teal-ink); color: #fff; font: 600 18px/40px var(--mk-sans); text-align: center; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .35); }
.mk-pair__labels { display: flex; justify-content: space-between; gap: 12px; font: 500 13px/1.4 var(--mk-sans); color: var(--mk-faint); margin: 12px 0 8px; }
.mk-pair__labels b { color: var(--mk-ink); font-weight: 600; }
.mk-pair p { font: 400 16px/1.6 var(--mk-sans); color: var(--mk-muted); margin: 0; }

/* ------------------------------------------------------------------ 6. years */
.mk-years { background: var(--mk-paper); }
.mk-years .mk-stage { display: flex; flex-direction: column; overflow: hidden; }
.mk-years__big { position: absolute; right: var(--mk-gutter); bottom: 2vh; font: 400 clamp(120px, 24vw, 380px)/.8 var(--mk-serif); color: var(--mk-ink); font-variant-numeric: tabular-nums; opacity: .07; pointer-events: none; z-index: 0; }
.mk-years__head, .mk-years__scroller { position: relative; z-index: 1; }
.mk-years__track { display: flex; gap: clamp(20px, 2.4vw, 40px); margin-top: 36px; width: max-content; padding-right: var(--mk-gutter); }
.mk-year { width: var(--yw, 150px); flex: none; }
.mk-page .mk-year h3 { font: 400 34px/1 var(--mk-serif); margin: 0 0 4px; color: var(--mk-ink); border-top: 1.5px solid var(--mk-ink); padding-top: 12px; }
.mk-year small { display: block; font: 500 12px/1.4 var(--mk-sans); color: var(--mk-faint); margin-bottom: 12px; }
.mk-year__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; list-style: none; padding: 0; margin: 0; }
.mk-years .mk-tile { position: relative; left: auto; top: auto; width: 100%; aspect-ratio: 4 / 3; box-shadow: 0 0 0 1px var(--mk-line); border-radius: 4px; }

/* ------------------------------------------------------------------ 7. wall */
.mk-wall { background: var(--mk-night); color: #F2F2EE; padding: clamp(70px, 10vh, 120px) var(--mk-gutter) clamp(50px, 8vh, 90px); }
.mk-wall .mk-h2 { color: #fff; }
.mk-wall .mk-overline { color: #5FD3C9; }
.mk-wall .mk-lede { color: #B5B5AE; }
.mk-wall__head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin-bottom: 26px; }
.mk-wall__tools { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.mk-page input.mk-search { width: min(360px, 100%); height: 48px; margin: 0; font: 500 15px/1 var(--mk-sans); padding: 0 18px; border-radius: 999px; border: 1.5px solid #3A3D3B; background: #1A1D1B; color: #fff; box-shadow: none; }
.mk-page input.mk-search:focus { background: #1A1D1B; border: 1.5px solid #5FD3C9; box-shadow: none; }
.mk-search::placeholder { color: #8E8E88; }
.mk-wall .mk-chip { background: transparent; color: #E8E8E3; border-color: #3A3D3B; }
.mk-wall .mk-chip:hover { border-color: #E8E8E3; }
.mk-wall .mk-chip[aria-pressed="true"] { background: #F2F2EE; color: var(--mk-night); border-color: #F2F2EE; }
.mk-wall__view { position: relative; height: min(76svh, 820px); border-radius: 10px; overflow: hidden; background: #181B19; cursor: grab; touch-action: none; outline-offset: 4px; }
.mk-wall__view.is-dragging { cursor: grabbing; }
.mk-wall__view canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mk-wall__tip { position: absolute; left: 0; top: 0; pointer-events: none; background: #fff; color: var(--mk-ink); border-radius: 8px; padding: 9px 12px; font: 500 13px/1.35 var(--mk-sans); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); white-space: nowrap; transform: translate(-50%, calc(-100% - 14px)); opacity: 0; transition: opacity .15s; }
.mk-wall__tip b { display: block; font-weight: 700; }
.mk-wall__tip span { color: var(--mk-muted); }
.mk-wall__tip.is-on { opacity: 1; }
.mk-wall__zoom { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 6px; }
.mk-wall__zoom button, .mk-wall__close { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--mk-ink); font: 600 18px/1 var(--mk-sans); cursor: pointer; }
.mk-wall__hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); background: rgba(0, 0, 0, .72); color: #fff; font: 500 13px/1 var(--mk-sans); padding: 10px 14px; border-radius: 999px; opacity: 0; transition: opacity .25s; pointer-events: none; white-space: nowrap; }
.mk-wall__hint.is-on { opacity: 1; }
.mk-wall__open { display: none; }
.mk-wall__close { display: none; position: absolute; top: 14px; right: 14px; z-index: 3; }
.mk-wall__status { font: 500 13px/1.4 var(--mk-sans); color: #B5B5AE; margin: 10px 2px 0; min-height: 1.4em; }
.mk-card { position: absolute; top: 14px; right: 14px; bottom: 70px; width: min(360px, calc(100% - 28px)); background: #fff; color: var(--mk-ink); border-radius: 10px; padding: 20px; overflow: auto; z-index: 2; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); transform: translateX(calc(100% + 30px)); visibility: hidden; transition: transform .5s var(--mk-ease), visibility 0s .5s; cursor: auto; }
.mk-card.is-open { transform: none; visibility: visible; transition: transform .5s var(--mk-ease); }
.mk-card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; border: 1px solid var(--mk-line); border-radius: 6px; margin-bottom: 16px; }
.mk-card__num { font: 600 12px/1 var(--mk-sans); letter-spacing: .14em; color: var(--mk-teal-ink); }
.mk-page .mk-card h3 { font: 400 32px/1.05 var(--mk-serif); margin: 8px 0 6px; color: var(--mk-ink); }
.mk-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font: 400 14px/1.4 var(--mk-sans); margin: 14px 0; }
.mk-card dt { color: var(--mk-faint); font-weight: 500; }
.mk-card dd { margin: 0; }
.mk-card p { font: 400 15px/1.6 var(--mk-sans); color: var(--mk-muted); }
.mk-card__x { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--mk-line); background: #fff; cursor: pointer; font: 500 18px/1 var(--mk-sans); color: var(--mk-ink); }
.mk-index { margin-top: 30px; border-top: 1px solid #2B2E2C; padding-top: 18px; }
.mk-index summary { cursor: pointer; font: 600 15px/1.4 var(--mk-sans); color: #F2F2EE; }
.mk-index ol { list-style: none; padding: 0; margin: 20px 0 0; columns: 3 260px; column-gap: 32px; font: 400 14px/1.4 var(--mk-sans); }
.mk-index li { break-inside: avoid; padding: 5px 0; border-bottom: 1px solid #222523; color: #DADAD4; }
.mk-index li button { all: unset; cursor: pointer; }
.mk-index li button:hover .mk-index__name, .mk-index li button:focus-visible .mk-index__name { color: #5FD3C9; }
.mk-index li button:focus-visible { outline: 2px solid #5FD3C9; outline-offset: 2px; }
.mk-index__n { color: #8E8E88; font-variant-numeric: tabular-nums; margin-right: 8px; }
.mk-index__meta { color: #8E8E88; font-size: 12px; display: block; padding-left: 34px; }
.mk-index a { color: #5FD3C9; font-size: 12px; margin-left: 34px; }

/* ------------------------------------------------------------------ 8. read */
.mk-read .mk-stage { min-height: 0; padding-top: clamp(80px, 12vh, 140px); padding-bottom: clamp(60px, 10vh, 120px); display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 4vw, 72px); align-items: center; }
.mk-read__frame { position: relative; aspect-ratio: 225 / 260; max-height: 86svh; width: 100%; margin-left: auto; background: var(--mk-cream); border-radius: 4px; overflow: hidden; box-shadow: 0 40px 70px -40px rgba(20, 20, 18, .55); }
.mk-read__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mk-read__facade { all: unset; position: absolute; inset: 0; cursor: pointer; display: block; }
.mk-read__facade img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--mk-ease); }
.mk-read__facade:hover img { transform: scale(1.02); }
.mk-read__facade:focus-visible { outline: 3px solid rgba(0, 168, 157, .55); outline-offset: -3px; }
.mk-read__play { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); }
.mk-read__links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* ------------------------------------------------------------------ 9. outro */
.mk-outro { text-align: center; padding: clamp(90px, 16vh, 180px) var(--mk-gutter); background: var(--mk-cream); }
.mk-outro__mark { width: clamp(90px, 10vw, 130px); margin: 0 auto 34px; }
.mk-outro__mark svg { width: 100%; height: auto; display: block; overflow: visible; }
.mk-outro .mk-h2 { max-width: 13em; margin-left: auto; margin-right: auto; }
.mk-outro .mk-lede { margin: 0 auto 34px; }
.mk-outro__ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.mk-outro__more { margin: 30px 0 0; font: 500 14px/1.6 var(--mk-sans); color: var(--mk-muted); }

/* ------------------------------------------------------------------ chrome: rail, sound, cursor */
.mk-rail { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 900; opacity: 0; pointer-events: none; transition: opacity .4s; }
.mk-rail.is-on { opacity: 1; pointer-events: auto; }
.mk-rail ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mk-rail a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; text-decoration: none; color: var(--mk-ink); height: 16px; }
.mk-rail a span { font: 600 11px/1 var(--mk-sans); letter-spacing: .1em; text-transform: uppercase; opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .25s; background: rgba(255, 255, 255, .92); padding: 4px 6px; border-radius: 4px; }
.mk-rail a::after { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; box-sizing: border-box; transition: background .25s, transform .25s; }
.mk-rail a:hover span, .mk-rail a:focus-visible span { opacity: 1; transform: none; }
.mk-rail a.is-active::after { background: currentColor; transform: scale(1.25); }
.mk-rail.is-dark a { color: #fff; }
.mk-rail.is-dark a span { background: rgba(0, 0, 0, .7); }
.mk-sound { position: fixed; left: 18px; bottom: 18px; z-index: 950; display: none; align-items: center; gap: 10px; font: 600 12px/1 var(--mk-sans); letter-spacing: .08em; text-transform: uppercase; padding: 11px 14px; border-radius: 999px; border: 1.5px solid #D6D6CF; background: rgba(255, 255, 255, .94); color: var(--mk-ink); cursor: pointer; backdrop-filter: blur(6px); }
html.mk-js .mk-sound { display: inline-flex; }
html.mk-gate-on .mk-sound { display: none; }
.mk-cursor { position: fixed; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 1.5px solid var(--mk-teal); pointer-events: none; z-index: 9999; display: none; align-items: center; justify-content: center; font: 600 10px/1 var(--mk-sans); letter-spacing: .08em; text-transform: uppercase; color: #fff; transition: width .3s var(--mk-ease), height .3s var(--mk-ease), margin .3s var(--mk-ease), background .3s; mix-blend-mode: normal; }
.mk-cursor.is-big { width: 74px; height: 74px; margin: -37px 0 0 -37px; background: var(--mk-teal-ink); border-color: var(--mk-teal-ink); }
html.mk-fine .mk-cursor { display: flex; }
.mk-cursor span { opacity: 0; transition: opacity .2s; }
.mk-cursor.is-big span { opacity: 1; }
.mk-cursor:not(.is-moved) { opacity: 0; }

/* ------------------------------------------------------------------ static mode (reduced motion or no animation library) */
html.mk-static .mk-book__scene { display: none; }
html.mk-static .mk-book__static { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-top: 30px; }
html.mk-static .mk-book__static img { width: 100%; height: auto; box-shadow: 0 16px 30px -24px rgba(0, 0, 0, .5); }
html.mk-static .mk-book__caption { display: none; }
html.mk-static .mk-draw .mk-stage { display: block; }
html.mk-static .mk-draw__art { display: none; }
html.mk-static .mk-draw__list { gap: 48px; }
html.mk-static .mk-draw__item { grid-area: auto; opacity: 1; visibility: visible; display: grid; grid-template-columns: minmax(140px, 260px) 1fr; gap: 28px; align-items: center; }
html.mk-static .mk-draw__item .mk-draw__still { display: block; }
.mk-draw__still { display: none; width: 100%; height: auto; }
html.mk-static .mk-draw__bar { display: none; }
html.mk-static .mk-years .mk-stage { overflow: visible; }
html.mk-static .mk-years__scroller { overflow-x: auto; padding-bottom: 12px; }
html.mk-static .mk-years__big { display: none; }
html.mk-static .mk-family .mk-tile { opacity: 1; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 991px) {
  .mk-hero { padding-top: 28px; }
  .mk-draw .mk-stage, .mk-family .mk-stage, .mk-read .mk-stage { grid-template-columns: 1fr; }
  .mk-draw .mk-stage { align-content: start; gap: 10px; }
  .mk-draw__art { max-height: 40svh; aspect-ratio: auto; height: 40svh; order: 2; }
  .mk-draw__texts { order: 1; }
  .mk-draw__list { margin-top: 14px; }
  .mk-draw__item p.mk-note { font-size: 15px; line-height: 1.55; }
  .mk-family .mk-stage { align-content: start; }
  .mk-family__orbit { max-height: 60svh; width: min(100%, 60svh); }
  .mk-pairs__grid { grid-template-columns: 1fr; }
  .mk-wall__head { grid-template-columns: 1fr; }
  .mk-wall__tools { align-items: stretch; }
  .mk-search { width: 100%; box-sizing: border-box; }
  .mk-rail { display: none; }
}
@media (max-width: 700px) {
  .mk-draw .mk-lede { display: none; }
  .mk-draw .mk-h2 { font-size: 36px; margin-bottom: 6px; }
  .mk-page .mk-draw__item h3 { font-size: 26px; margin: 6px 0 4px; }
  .mk-draw__item p.mk-note { font-size: 14px; margin-bottom: 10px; }
  .mk-draw__bar { margin-top: 14px; }
  .mk-hero { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto auto auto auto auto auto; padding-top: 24px; align-content: space-between; }
  .mk-ghost { min-height: 54px; }
  .mk-ghost img { max-height: 64px; }
  .mk-ghost:nth-child(1) { grid-area: 1 / 1; } .mk-ghost:nth-child(2) { grid-area: 1 / 2; } .mk-ghost:nth-child(3) { grid-area: 1 / 3; }
  .mk-ghost:nth-child(4) { grid-area: 2 / 1; } .mk-ghost:nth-child(5) { grid-area: 2 / 2; } .mk-ghost:nth-child(6) { grid-area: 2 / 3; }
  .mk-ghost:nth-child(7) { grid-area: 5 / 1; } .mk-ghost:nth-child(8) { grid-area: 5 / 2; } .mk-ghost:nth-child(9) { grid-area: 5 / 3; }
  .mk-ghost:nth-child(10) { grid-area: 6 / 1; } .mk-ghost:nth-child(11) { grid-area: 6 / 2; } .mk-ghost:nth-child(12) { grid-area: 6 / 3; }
  .mk-hero__center { grid-area: 3 / 1 / 5 / 4; padding: 18px 0; }
  .mk-hero__foot { grid-area: 7 / 1 / 8 / 4; }
  .mk-hero__stats { gap: 4px 16px; font-size: 13px; }
  .mk-book__book { --pw: min(44vw, 30svh * .865); }
  .mk-wall__view { height: 62svh; touch-action: pan-y; cursor: default; }
  .mk-wall__view .mk-wall__zoom { display: none; }
  .mk-wall__open { display: inline-flex; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; }
  .mk-wall__view.is-full { position: fixed; inset: 0; height: 100dvh; border-radius: 0; z-index: 9500; touch-action: none; }
  .mk-wall__view.is-full .mk-wall__open { display: none; }
  .mk-wall__view.is-full .mk-wall__close { display: block; }
  .mk-wall__view.is-full .mk-wall__zoom { display: flex; }
  .mk-card { top: auto; bottom: 0; right: 0; left: 0; width: auto; max-height: 64%; border-radius: 14px 14px 0 0; transform: translateY(105%); }
  .mk-years__big { font-size: 44vw; }
  .mk-sound { left: 12px; bottom: 12px; padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .mk-hero__cue::after, .mk-eq.is-live i { animation: none; }
  .mk-card { transition: none; }
}

/* ------------------------------------------------------------------ the film (lightbox) */
.mk-filmbtn { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; font: 600 14px/1 var(--mk-sans); color: var(--mk-ink); padding: 9px 14px 9px 9px; border-radius: 999px; border: 1.5px solid #D6D6CF; background: #fff; vertical-align: middle; transition: border-color .25s, transform .25s; }
.mk-filmbtn:hover { border-color: var(--mk-ink); transform: translateY(-1px); }
.mk-filmbtn:focus-visible { outline: 3px solid rgba(0, 168, 157, .55); outline-offset: 3px; }
.mk-filmbtn__play { width: 26px; height: 26px; border-radius: 50%; background: var(--mk-teal-ink); position: relative; flex: none; }
.mk-filmbtn__play::after { content: ""; position: absolute; left: 10px; top: 8px; border-left: 9px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.mk-filmbtn--gate { margin-top: 18px; border-color: transparent; background: transparent; color: var(--mk-muted); }
.mk-film { position: fixed; inset: 0; z-index: 10050; background: rgba(8, 9, 8, .94); display: flex; align-items: center; justify-content: center; padding: 56px 24px 24px; }
.mk-film[hidden] { display: none; }
.mk-film__video { width: min(100%, calc((100svh - 100px) * 16 / 9)); max-height: calc(100svh - 90px); background: #000; border-radius: 6px; }
.mk-film.is-tall .mk-film__video { width: auto; height: calc(100svh - 90px); max-width: 100%; }
.mk-film__x { position: absolute; top: 12px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--mk-ink); font: 500 24px/1 var(--mk-sans); cursor: pointer; }
