/*
 * humanful.org's motion stylesheet (OPS-199, preview V7), linked in the motion build (the
 * default and the published site) next to /motion.js. The still build (SITE_MOTION=off)
 * carries none of it.
 *
 * Everything that moves waits for html.mk-motion, which /motion.js sets only when the
 * visitor allows motion; "Pause all motion" takes it away again (and sets mk-still), so
 * the page falls back to the whole still page of site.css: nothing pinned, every window
 * open, every word lit, every line in, every block risen and every figure drawn. Only
 * transform, translate, scale and opacity move, and clip-path for a window that opens.
 *
 * Before the first paint the script has not run yet, so the few things it will move are
 * kept out of sight where motion is allowed (html[data-js], set by /theme.js in the head),
 * each with a fallback that shows it after a few seconds if the script never comes.
 */

/* the values the script writes on one element only: registered so a change restyles that
   element alone, never the page below it */
@property --mk-x { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --mk-y { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --mk-s { syntax: "<number>"; inherits: false; initial-value: 1; }
@property --mk-p { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --mk-rx { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --mk-ry { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
/* --mk-foot is the corner of the floating "Pause all motion" button (16px from the edge, 44px
   tall) and a little air: every pinned stage keeps its words above it, so the button never
   stands on a word or a control while a stage is still */
:root { --mk-ease: cubic-bezier(.16, 1, .3, 1); --mk-foot: calc(max(16px, env(safe-area-inset-bottom, 0px)) + 60px); }

/* ------------------------------------------------------------------ before the script */
@media (prefers-reduced-motion: no-preference) {
  html[data-js]:not(.mk-reduced):not(.mk-still) [data-reveal="lines"]:not(.mk-split),
  html[data-js]:not(.mk-reduced):not(.mk-still) .open__stage:not(.is-ready) > :not(.open__measure) { opacity: 0; animation: mk-show .01s linear 3s forwards; }
}
@keyframes mk-show { to { opacity: 1; } }

/* ------------------------------------------------------------------ between pages
   An ink curtain with the Humanful mark crosses the screen (0.28s) when a link leads to
   another page of the site; where the browser has cross document view transitions it
   lifts over the next page (0.32s), so there is no white frame between. It is the root's
   own pseudo element and needs no markup. Never with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
html.mk-leave::after { content: ""; position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; background: #1C160E url('/brand/humanful-mark-dark.svg') 50% 50% / 56px 56px no-repeat; animation: mk-cover .28s cubic-bezier(.7, 0, .25, 1) both; }
::view-transition-group(root) { animation-duration: .32s; }
::view-transition-old(root) { z-index: 2; animation: mk-uncover .32s cubic-bezier(.7, 0, .25, 1) both; }
::view-transition-new(root) { animation: none; }
@keyframes mk-cover { from { transform: translate3d(0, 100%, 0); } to { transform: none; } }
@keyframes mk-uncover { from { transform: none; } to { transform: translate3d(0, -100%, 0); } }

/* ------------------------------------------------------------------ data-reveal="lines" */
.mk-vis { display: block; }
.mk-line { display: block; overflow: hidden; overflow: clip; padding-block: .1em .18em; margin-block: -.1em -.18em; }
:lang(ar) .mk-line { padding-block: .22em .3em; margin-block: -.22em -.3em; }
.mk-line__in { display: block; }
.mk-motion [data-reveal="lines"] { overflow-wrap: normal; }
.mk-fit { font-size: var(--mk-fit) !important; }
.mk-motion [data-reveal="lines"] .mk-line__in { transform: translate3d(0, 108%, 0); transition: transform 1.25s var(--mk-ease); transition-delay: calc(var(--mk-i, 0) * 110ms + var(--mk-delay, 0ms)); }
.mk-motion [data-reveal="lines"].is-in .mk-line__in { transform: none; }

/* ------------------------------------------------------------------ data-reveal="window", and .mk-window for a scene that opens it itself */
.mk-motion :is([data-reveal="window"], .mk-window) { clip-path: inset(var(--mk-win-y, 6%) var(--mk-win-x, 30%)); transition: clip-path 1.5s var(--mk-ease); }
.mk-motion :is([data-reveal="window"], .mk-window).is-in { clip-path: inset(0); }
.mk-motion :is([data-reveal="window"], .mk-window) :is(img, video) { scale: 1.08; transition: scale 2.4s var(--mk-ease); }
.mk-motion :is([data-reveal="window"], .mk-window).is-in :is(img, video) { scale: 1; }

/* ------------------------------------------------------------------ data-reveal="words": a quiet grey to ink, word by word.
   Half of the ink still holds more than 3 to 1 on its ground, which large text needs. */
.mk-motion [data-reveal="words"] .mk-w { opacity: clamp(.5, calc(var(--mk-p, 0) * (var(--mk-n, 1) + 2) - var(--mk-i, 0)), 1); }

/* ------------------------------------------------------------------ data-drift, data-magnetic: the script writes the place */
.mk-motion [data-drift], .mk-motion [data-magnetic] { translate: var(--mk-x) var(--mk-y); }

/* ------------------------------------------------------------------ the pointer dot and the picture that follows, a mouse only */
.mk-dot, .mk-follow { display: none; }
@media (hover: hover) and (pointer: fine) {
  .mk-motion .mk-dot { display: block; position: fixed; inset-block-start: 0; left: 0; z-index: 38; inline-size: 0; block-size: 0; pointer-events: none; opacity: 0; translate: var(--mk-x) var(--mk-y); transition: opacity .4s ease; }
  .mk-motion .mk-dot.is-on { opacity: 1; }
  .mk-motion .mk-dot.is-hidden { opacity: 0; }
  .mk-dot__core { position: absolute; inline-size: 8px; block-size: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #1C160E; box-shadow: 0 0 0 2px rgba(251, 248, 242, .8); transition: opacity .3s ease, transform .5s var(--mk-ease); }
  .mk-dot__disc { position: absolute; inline-size: 72px; block-size: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: #FBF8F2; box-shadow: 0 0 0 1px rgba(28, 22, 14, .22), 0 8px 24px rgba(20, 15, 9, .24); transform: scale(.1); opacity: 0; transition: transform .55s var(--mk-ease), opacity .3s ease; }
  .mk-dot__word { position: absolute; inline-size: 72px; margin: -.65em 0 0 -36px; text-align: center; font: 600 13px/1.3 var(--f-text); color: #1C160E; opacity: 0; transition: opacity .25s ease; }
  :lang(ar) .mk-dot__word { font-size: 15px; }
  .mk-dot.is-big .mk-dot__disc { transform: none; opacity: 1; }
  .mk-dot.is-big .mk-dot__core { opacity: 0; transform: scale(.4); }
  .mk-dot.is-big .mk-dot__word { opacity: 1; transition-delay: .12s; }
  .mk-motion .mk-follow { display: block; position: fixed; inset-block-start: 0; left: 0; z-index: 34; inline-size: clamp(300px, 29vw, 420px); aspect-ratio: 420 / 520; overflow: hidden; pointer-events: none; opacity: 0; background: #241B11; translate: var(--mk-x) var(--mk-y); transition: opacity .5s ease; }
  .mk-motion .mk-follow.is-on { opacity: 1; }
  .mk-follow img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; scale: 1.07; transition: scale 1.4s var(--mk-ease); }
  .mk-follow.is-on img { scale: 1; }
  .mk-motion .mk-follow-on > [data-follow-picture] { transition: opacity .6s ease; }
  .mk-motion .mk-follow-on > [data-follow-picture]:not(.is-follow) { opacity: .45; }
  .mk-motion .index__row.is-follow .index__h { translate: calc(18px * var(--mk-dir, 1)) 0; }
  [dir="rtl"] { --mk-dir: -1; }
}

/* ------------------------------------------------------------------ data-rail: the chapter rail, 1200px and wider
   Thin marks in the margin at the end side; the current one is long, the names show on
   hover and on focus. It is a real list of links, and the keyboard always reaches it. */
.mk-rail { display: none; }
@media (min-width: 1200px) {
  .mk-rail { display: block; position: fixed; inset-inline-end: 14px; inset-block-start: 50%; z-index: 32; translate: 0 -50%; color: #FBF8F2; transition: opacity .6s ease; }
  .mk-rail.on-paper { color: var(--site-ink); }
  .mk-rail.is-away { opacity: 0; pointer-events: none; }
  .mk-rail:focus-within { opacity: 1; pointer-events: auto; }
  .mk-rail ol { display: grid; gap: 2px; justify-items: end; }
  .mk-rail a { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-block-size: 28px; min-inline-size: 36px; padding-inline: 6px; color: inherit; text-decoration: none; }
  .mk-rail a::after { content: ""; display: block; flex: none; inline-size: 14px; block-size: 2px; border-radius: 1px; background: currentColor; opacity: .6; box-shadow: 0 0 0 1px rgba(20, 15, 9, .18); transform-origin: 100% 50%; transition: transform .6s var(--mk-ease), opacity .4s ease; }
  [dir="rtl"] .mk-rail a::after { transform-origin: 0 50%; }
  .mk-rail a[aria-current]::after { transform: scaleX(2.1); opacity: 1; }
  .mk-rail a:hover::after { opacity: 1; }
  .mk-rail__t { padding: 5px 11px; border-radius: 999px; background: rgba(28, 22, 14, .94); color: #FBF8F2; font: 500 13px/1.25 var(--f-text); white-space: nowrap; opacity: 0; transition: opacity .4s ease; pointer-events: none; }
  :lang(ar) .mk-rail__t { font-size: 15px; }
  .mk-rail:hover .mk-rail__t, .mk-rail:focus-within .mk-rail__t { opacity: 1; }
  .mk-rail a:focus-visible { outline: 2px solid #FFD79A; outline-offset: 0; border-radius: 6px; }
  .mk-rail.on-paper a:focus-visible { outline-color: var(--site-focus); }
}

/* ------------------------------------------------------------------ the header over the ink chapters
   Over a chapter on ink the header takes the ink too (its tokens turn dark), so a paper
   band never cuts across a film; over a paper chapter it is the page's own colour. */
.mk-motion .top.on-cinema {
  --site-bg: #1C160E; --site-bg2: #241B11; --site-surface: #241B11; --site-ink: #FFFFFF; --site-text: #FBF8F2; --site-muted: #CFC4B3;
  --site-line: rgba(251, 248, 242, .16); --site-line-strong: rgba(251, 248, 242, .34); --site-gold: #E6B450; --site-gold-hover: #F0C46B;
  --site-copper: #E08A5B; --site-copper-text: #E8A07A; --site-mark-ink: #FFFFFF; --site-mark-copper: #E08A5B; --site-mark-gold: #E6B450;
  --site-focus: #FFD79A; --site-shadow: rgba(0, 0, 0, .4); --site-flag-ring: rgba(255, 255, 255, .22); color-scheme: dark;
}
.mk-motion .top { transition: background-color .5s ease, color .5s ease; }
.mk-motion .top.mk-now { transition: none; }

/* ------------------------------------------------------------------ the light of the ink chapters
   One soft warm light per chapter, drifting very slowly over a fine grain; under every
   word, never gold. Drawn at 40 percent, so the light's own colour is set stronger. */
.mk-motion .cinema:is(.how, .make, .who, .listen)::before { content: ""; position: absolute; inset: -10%; z-index: 0; pointer-events: none; opacity: .4; background: url('/grain.png') 0 0 / 128px 128px, radial-gradient(36% 40% at 68% 36%, rgba(240, 181, 106, .26), rgba(240, 181, 106, 0)); animation: mk-light 38s ease-in-out infinite alternate; }
.mk-motion .who::before { background: url('/grain.png') 0 0 / 128px 128px, radial-gradient(closest-side at 50% 44%, rgba(59, 78, 107, 1), rgba(59, 78, 107, 0)); }
.mk-motion :is(.how, .make, .listen) > *, .mk-motion .who__stage { position: relative; z-index: 1; }
/* the light drifts inside its chapter: clip (not hidden) keeps the pinned stages sticky */
.mk-motion .cinema { overflow: clip; }
@keyframes mk-light { from { translate: -8% -4%; } to { translate: 9% 6%; } }

/* ------------------------------------------------------------------ the small movements of the home page's controls */
.mk-motion .index__h { transition: translate .9s var(--mk-ease); }
.mk-motion .index__plus { transition: transform .7s var(--mk-ease); }
.mk-motion .mail::after { transition: transform 1.1s var(--mk-ease); }
.mk-motion .cfilm__disc { transition: transform .8s var(--mk-ease); }
.mk-motion .cfilm__play { transition: opacity .7s ease; }
.mk-motion .lineup__frame .film::before { transition: opacity .8s ease; }
.mk-motion .listen__said { transition: opacity .5s ease; }
.mk-motion .theatre { transition: opacity .9s ease, visibility 0s .9s; }
.mk-motion.theatre-on .theatre { transition: opacity .9s ease; }

/* ------------------------------------------------------------------ films */
.mk-motion .film video { opacity: 0; transition: opacity 1.4s ease; }
.mk-motion .film video.is-on { opacity: 1; }
/* a film this screen has to enlarge is softened honestly: fine grain and a dark vignette */
.mk-motion .film.is-soft::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(ellipse 86% 86% at 50% 48%, rgba(20, 15, 9, 0) 46%, rgba(20, 15, 9, .5) 100%), url('/grain.png') 0 0 / 150px 150px; }
/* a film of shots: each shot a layer that dissolves in over the last, its still moving very slowly */
.reel { opacity: 0; z-index: var(--mk-z, 1); transition: opacity 1.6s ease; }
.reel.is-on { opacity: 1; }
.mk-motion .reel.is-moving img { animation: mk-push 16s linear forwards; }
.mk-motion .is-paused .reel img { animation-play-state: paused; }
@keyframes mk-push { from { scale: 1; } to { scale: 1.07; } }

/* ------------------------------------------------------------------ 1 the opening: the film through the letters, then through a letter into it */
.mk-motion .open { block-size: calc(100svh * 3.1); }
.mk-motion .open__stage { position: sticky; inset-block-start: var(--top-clear); }
.mk-motion .open__words { inset-block-end: max(clamp(28px, 5vh, 56px), var(--mk-foot)); }
.open__wash, .open__mask, .open__measure { display: none; }
.mk-motion .is-masked .open__mask { display: block; position: absolute; inset: 0; inline-size: 100%; block-size: 100%; transform-origin: var(--mk-ox, 50%) var(--mk-oy, 50%); scale: var(--mk-s); opacity: var(--mask, 1); will-change: transform; }
/* the floor under the letters: no point of the film inside them darker than a warm grey that
   holds 3.3 to 1 against the ink while the heading is read; it lifts as the zoom begins */
.mk-motion .is-masked .open__wash { display: block; position: absolute; inset: 0; background: #74685A; mix-blend-mode: lighten; opacity: var(--wash, 1); }
.mk-motion .open__measure { display: flex; align-items: center; position: absolute; inset-block: 8px calc(var(--lockup, 190px) + clamp(28px, 5vh, 56px) + 20px); inset-inline: var(--gut); visibility: hidden; pointer-events: none; font: 800 var(--mk-fs, 100px)/.94 var(--f-head); letter-spacing: 0; }
:lang(ar) .open__measure { line-height: 1.22; }
.open__fit { display: block; max-inline-size: 100%; text-wrap: balance; overflow-wrap: normal; }
.open__probe { display: inline-block; inline-size: 0; block-size: 0; }
.mk-motion .is-masked .open__shade { opacity: var(--thru, 0); }
.mk-motion .is-masked :is(.open__title, .open__actions) { opacity: var(--thru, 0); }
.mk-motion .is-masked .open__actions:focus-within { opacity: 1; }
.mk-motion .is-masked .open__rule { opacity: max(calc(1 - var(--o, 0) * 9), var(--thru, 0)); }
.mk-motion .is-masked.is-through .open__mask, .mk-motion .no-wash .open__wash { visibility: hidden; }
.mk-motion .is-masked.is-dark .open__film { opacity: 0; }
.mk-motion .is-masked .open__film { transition: opacity 2.2s ease; }
.cue { display: none; }
.mk-motion .cue { display: block; opacity: calc(1 - var(--o, 0) * 6); }
.mk-motion .cue i { display: block; position: relative; overflow: hidden; inline-size: 1px; block-size: 44px; background: rgba(251, 248, 242, .34); }
.mk-motion .cue i::after { content: ""; position: absolute; inset: 0; background: #FFFFFF; transform: translateY(-100%); animation: mk-cue 3.2s var(--mk-ease) infinite; }
@keyframes mk-cue { 0% { transform: translateY(-100%); } 55% { transform: translateY(0); } 100% { transform: translateY(100%); } }
@media (max-width: 760px) { .mk-motion .cue { display: none; } }
@media (forced-colors: active) {
  .mk-motion .is-masked :is(.open__mask, .open__wash) { display: none; }
  .mk-motion .is-masked :is(.open__title, .open__actions, .open__rule, .open__shade) { opacity: 1; }
}

/* ------------------------------------------------------------------ 2 the sentence lights on a short pinned stage */
.mk-motion .about__track { block-size: 210svh; }
.mk-motion .about__stage { position: sticky; inset-block-start: var(--top-clear); block-size: calc(100svh - var(--top-clear)); padding-block: 16px var(--mk-foot); }
.mk-motion .pillar__drift { translate: 0 var(--mk-y); }
.mk-motion .lineup__frame video { transition-duration: .9s; }

/* ------------------------------------------------------------------ 3 the rule draws itself (--d from 0 to 1), then the commitments one at a time */
.mk-motion .rnode--idea { opacity: clamp(0, calc(var(--d, 1) * 10), 1); }
.mk-motion .rline i { scale: clamp(0, calc((var(--d, 1) - .08) * 4.4), 1) 1; }
.mk-motion .rnode--ask { opacity: clamp(0, calc((var(--d, 1) - .26) * 6), 1); }
.mk-motion .rfork__clip { translate: calc((clamp(0, calc((var(--d, 1) - .44) * 3.4), 1) - 1) * 100% * var(--mk-dir, 1)) 0; }
.mk-motion .rfork__clip svg { translate: calc((1 - clamp(0, calc((var(--d, 1) - .44) * 3.4), 1)) * 100% * var(--mk-dir, 1)) 0; }
.mk-motion .rend--yes { opacity: clamp(0, calc((var(--d, 1) - .7) * 7), 1); }
.mk-motion .rend--no { opacity: clamp(0, calc((var(--d, 1) - .8) * 7), 1); }
.mk-motion .rule .cap { opacity: clamp(0, calc((var(--d, 1) - .9) * 10), 1); }
[dir="rtl"] { --mk-dir: -1; }
@media (max-width: 760px) { .mk-motion .rline i { scale: 1 clamp(0, calc((var(--d, 1) - .08) * 4.4), 1); } }
@media (min-width: 1100px) and (min-height: 680px) {
  .mk-motion .vows { block-size: calc(100svh * 5); }
  .mk-motion .vows__stage { position: sticky; inset-block-start: var(--top-clear); block-size: calc(100svh - var(--top-clear)); overflow: hidden; overflow: clip; }
  .mk-motion .vows__list { display: block; position: absolute; inset: 0; inline-size: auto; margin: 0; padding: 0; }
  .mk-motion .vow { position: absolute; inset: 0; display: block; pointer-events: none; }
  .mk-motion .vow.is-on { pointer-events: auto; }
  .mk-motion .vow__win { --mk-win-x: 18%; --mk-win-y: 9%; position: absolute; inset-inline-end: var(--gut); inset-block: 8px clamp(36px, 6vh, 64px); inline-size: min(34vw, 600px); aspect-ratio: auto; z-index: 1; }
  .mk-motion .vow.was-on .vow__win { z-index: 2; }
  .mk-motion .vow.is-on .vow__win { z-index: 3; }
  .mk-motion .vow__words { position: absolute; inset-inline-start: var(--gut); inset-block: 8px calc(var(--mk-foot) + clamp(84px, 11vh, 110px)); inline-size: calc(100% - min(34vw, 600px) - 2 * var(--gut) - clamp(40px, 5vw, 96px)); display: flex; flex-direction: column; justify-content: center; opacity: 0; transition: opacity .35s ease; }
  .mk-motion .vow.is-on .vow__words { opacity: 1; transition: opacity .2s ease; }
  .mk-motion .vow__ico { opacity: 0; translate: 0 18px; transition: opacity .9s ease, translate 1.3s var(--mk-ease); }
  .mk-motion .vow.is-on .vow__ico { opacity: 1; translate: 0 0; }
  .mk-motion [data-chapter] .vow__h { --mk-delay: 120ms; font-size: var(--mk-fs, clamp(40px, 8vw, 144px)); }
  .mk-motion .vow__p { opacity: 0; translate: 0 16px; transition: opacity 1s ease, translate 1.3s var(--mk-ease); }
  .mk-motion .vow.is-on .vow__p { opacity: 1; translate: 0 0; transition-delay: .5s; }
  .mk-motion .vows__rail { display: flex; position: absolute; inset-inline-start: var(--gut); inset-block-end: var(--mk-foot); inline-size: calc(100% - min(34vw, 600px) - 2 * var(--gut) - clamp(40px, 5vw, 96px)); gap: 14px; }
  .vows__go { position: relative; flex: 1 1 0; min-inline-size: 0; min-block-size: 52px; padding: 14px 0 0; border: 0; border-block-start: 1px solid var(--site-line-strong); background: none; color: var(--site-muted); font: 500 14px/1.3 var(--f-text); text-align: start; cursor: pointer; }
  .vows__go span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .vows__go::before { content: ""; position: absolute; inset-block-start: -1px; inset-inline: 0; block-size: 2px; background: var(--site-text); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1s var(--mk-ease); }
  [dir="rtl"] .vows__go::before { transform-origin: 100% 50%; }
  .vows__go:hover, .vows__go[aria-current] { color: var(--site-ink); }
  .vows__go[aria-current]::before { transform: scaleX(1); }
}

/* ------------------------------------------------------------------ 4 the phone: pinned while its screen changes through the five */
@media (min-height: 600px) {
  .mk-motion .inside__track { block-size: calc(100svh * 4.6); }
  .mk-motion .inside__stage { position: sticky; inset-block-start: var(--top-clear); block-size: calc(100svh - var(--top-clear)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 96px); padding: 8px var(--gut) max(clamp(24px, 4vh, 40px), var(--mk-foot)); overflow: hidden; overflow: clip; }
  .mk-motion .inside__says { display: grid; gap: 0; margin-block-start: clamp(20px, 3.6vh, 36px); }
  .mk-motion .inside__say { grid-area: 1 / 1; transition: opacity .35s ease; }
  .mk-motion .inside__say:not(.is-on) { opacity: 0; }
  .mk-motion .inside__say p { max-inline-size: 14em; font-size: clamp(28px, 3vw, 50px); line-height: 1.14; }
  .mk-motion .inside__ticks { display: flex; gap: 10px; margin-block-start: clamp(24px, 4vh, 44px); }
  .mk-motion .inside__ticks i { display: block; inline-size: 34px; block-size: 2px; background: var(--site-text); opacity: .28; transition: opacity .6s ease; }
  .mk-motion .inside__ticks i.is-on { opacity: 1; }
  .mk-motion .inside__device { display: grid; place-items: center; block-size: 100%; margin: 0; }
  .mk-motion .inside__glow { display: block; position: absolute; inset-inline-start: 50%; inset-block-start: 50%; inline-size: min(120%, 80vh); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(230, 160, 75, .4), rgba(230, 160, 75, .14) 52%, rgba(230, 160, 75, 0)); animation: mk-breathe 9s ease-in-out infinite alternate; }
  .mk-motion[dir="rtl"] .inside__glow { translate: 50% -50%; }
  .mk-motion .handset { --ph: min(78svh - var(--top-clear) * .5, 800px); --bz: 13px; position: relative; block-size: var(--ph); inline-size: calc((var(--ph) - 2 * var(--bz)) * .5625 + 2 * var(--bz)); padding: var(--bz); border-radius: calc(var(--ph) * .075); background: linear-gradient(140deg, #4A4036 0, #1E1812 38%, #120D09 62%, #3A3128 100%); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16), inset 0 0 0 6px #0B0806, 0 70px 120px -40px rgba(0, 0, 0, .8), 0 30px 60px -24px rgba(0, 0, 0, .55); transform: perspective(1600px) translate3d(0, var(--mk-y), 0) rotateY(var(--mk-ry)) rotateX(var(--mk-rx)); will-change: transform; }
  .mk-motion .handset::before, .mk-motion .handset::after { content: ""; position: absolute; inline-size: 4px; border-radius: 2px; background: linear-gradient(90deg, #2A231C, #4A4036); }
  .mk-motion .handset::before { inset-inline-start: -3px; inset-block-start: 20%; block-size: 9%; }
  .mk-motion .handset::after { inset-inline-end: -3px; inset-block-start: 26%; block-size: 14%; }
  .mk-motion .handset__island { display: block; position: absolute; inset-block-start: 4px; inset-inline-start: 50%; inline-size: 6px; block-size: 6px; margin-inline-start: -3px; border-radius: 50%; background: #2A2620; }
  .mk-motion .handset__screens { display: block; position: relative; block-size: 100%; padding: 0; overflow: hidden; border-radius: calc(var(--ph) * .058); background: #F3E8D8; scroll-snap-type: none; }
  .mk-motion .handset__shot { position: absolute; inset: 0; inline-size: auto; margin: 0; border-radius: 0; box-shadow: none; background: none; opacity: 0; transition: opacity .7s ease; }
  .mk-motion .handset__shot.is-on { opacity: 1; }
  .mk-motion .handset__shot img { inline-size: 100%; block-size: 100%; object-fit: cover; scale: 1.035; transition: scale 1.4s var(--mk-ease); }
  .mk-motion .handset__shot.is-on img { scale: 1; }
}
@media (min-height: 600px) and (max-width: 899px) {
  .mk-motion .inside__stage { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); align-items: start; gap: 18px; padding-block-start: 4px; }
  .mk-motion .inside__says { margin-block-start: 10px; }
  .mk-motion .inside__say p { font-size: clamp(20px, 5.6vw, 26px); }
  .mk-motion .inside__ticks { margin-block-start: 14px; }
  .mk-motion .inside__cap { display: none; }
  .mk-motion .handset { --ph: min(52svh, 520px); --bz: 9px; transform: none; }
}
@keyframes mk-breathe { from { scale: .94; opacity: .78; } to { scale: 1.04; opacity: 1; } }

/* More to come fills its line (the script measures the size; under 22px it wraps instead) */
.mk .make__more-in.is-fit { font-size: var(--mk-fs); }

/* ------------------------------------------------------------------ 5 the wall: pinned, the columns pass behind the words at four speeds */
@media (min-height: 560px) {
  .mk-motion .who { padding-block: 0; block-size: calc(100svh * 3.2); }
  .mk-motion .who__stage { position: sticky; inset-block-start: var(--top-clear); block-size: calc(100svh - var(--top-clear)); display: grid; place-items: center; overflow: hidden; overflow: clip; }
  .mk-motion .who__words { position: relative; z-index: 3; inline-size: fit-content; max-inline-size: min(66rem, 100% - 2 * var(--gut)); padding: clamp(18px, 3vh, 36px) clamp(20px, 3vw, 56px); text-align: center; pointer-events: none; }
  /* the words have their own ground: a field of ink, solid under every letter and feathered at its edge */
  .mk-motion .who__words::before { --f: clamp(40px, 6vw, 96px); content: ""; position: absolute; z-index: -1; inset: calc(-1 * var(--f)) calc(-1.5 * var(--f)); pointer-events: none; background: #1C160E;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 calc(1.5 * var(--f)), #000 calc(100% - 1.5 * var(--f)), transparent), linear-gradient(180deg, transparent, #000 var(--f), #000 calc(100% - var(--f)), transparent); -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent, #000 calc(1.5 * var(--f)), #000 calc(100% - 1.5 * var(--f)), transparent), linear-gradient(180deg, transparent, #000 var(--f), #000 calc(100% - var(--f)), transparent); mask-composite: intersect; }
  .mk-motion .who__h, .mk-motion .who__lead { margin-inline: auto; }
  .mk-motion .who__lead { color: var(--site-text); }
  .mk-motion .wall { position: absolute; z-index: 1; inset-inline: 0; inset-block-start: 50%; inline-size: 100%; margin: 0; padding-inline: clamp(10px, 1.4vw, 22px); translate: 0 -50%; }
  .mk-motion .wall__col { translate: 0 var(--mk-y); }
  .mk-motion .wtile .film::before { transition: opacity .8s ease; }
}
@media (min-height: 560px) and (max-width: 899px) {
  .mk-motion .who__stage { place-items: start center; }
  .mk-motion .who__words { inline-size: 100%; max-inline-size: none; padding: 6px var(--gut) 18px; background: #1C160E; }
  .mk-motion .who__words::before { inset: 100% 0 auto 0; block-size: 36px; z-index: 0; background: linear-gradient(180deg, #1C160E, rgba(28, 22, 14, 0)); -webkit-mask-image: none; mask-image: none; }
  .mk-motion .who__h { font-size: clamp(32px, 9vw, 44px); }
  .mk-motion .who__lead { margin-block-start: 16px; font-size: 18px; line-height: 1.4; }
}

/* ------------------------------------------------------------------ 8 the closing film settles from a little too large; HUMANFUL rises letter by letter */
.mk-motion .close__film { scale: var(--mk-s); }
.foot__word.is-letters svg { overflow: hidden; }
.mk-motion .foot__word.is-letters .fw-l { translate: 0 138px; transition: translate 1.3s var(--mk-ease); transition-delay: calc(var(--mk-i, 0) * 70ms); }
.mk-motion .foot__word.is-letters.is-in .fw-l { translate: 0 0; }

/* ------------------------------------------------------------------ data-reveal="rise": a block rises into place, once */
.mk-motion [data-reveal="rise"] { transition: opacity 1s ease, translate 1.3s var(--mk-ease); transition-delay: calc(var(--mk-i, 0) * 110ms); }
.mk-motion [data-reveal="rise"]:not(.is-in) { opacity: 0; translate: 0 32px; }

/* ------------------------------------------------------------------ data-reveal="draw": a figure of the site draws itself, once
   The map: the orbit, then the spokes one by one, then the commitments and their numbers,
   then the list beside it. The pipeline: each step in turn, its thread growing down to the
   next, its "How we know" after it. The lanes: the time arrow grows, then the steps in turn.
   Only opacity and transforms move; before it draws, the figure is simply not there yet. */
.mk-motion [data-reveal="draw"] :is(.orbit, .spoke, .core, .core-t, .ring, .map .ill, .mico, .bad, .bad-t, .legend li, .pst, .seg, .gate, .plink, .axis .run, .axis .tend, .sst, .lanehead) { transition: opacity .9s ease, scale 1.4s var(--mk-ease), translate 1.2s var(--mk-ease); transform-box: fill-box; transform-origin: 50% 50%; }
.mk-motion [data-reveal="draw"]:not(.is-in) :is(.orbit, .spoke, .core, .core-t, .ring, .map .ill, .mico, .bad, .bad-t, .legend li, .pst, .gate, .plink, .axis .tend, .sst, .lanehead) { opacity: 0; }
.mk-motion [data-reveal="draw"]:not(.is-in) :is(.orbit, .core) { scale: .9; }
.mk-motion [data-reveal="draw"]:not(.is-in) :is(.ring, .map .ill, .mico) { scale: .6; }
.mk-motion [data-reveal="draw"]:not(.is-in) :is(.legend li, .pst, .sst) { translate: 0 24px; }
.mk-motion [data-reveal="draw"] .seg { transform-origin: 50% 0; }
.mk-motion [data-reveal="draw"]:not(.is-in) .seg { scale: 1 0; }
.mk-motion [data-reveal="draw"] .axis .run { transform-origin: 0 50%; }
.mk-motion[dir="rtl"] [data-reveal="draw"] .axis .run { transform-origin: 100% 50%; }
.mk-motion [data-reveal="draw"]:not(.is-in) .axis .run { scale: 0 1; }
.mk-motion [data-reveal="draw"] :is(.core, .core-t) { transition-delay: .15s; }
.mk-motion [data-reveal="draw"] .spoke:nth-of-type(2) { transition-delay: .3s; }
.mk-motion [data-reveal="draw"] .spoke:nth-of-type(3) { transition-delay: .4s; }
.mk-motion [data-reveal="draw"] .spoke:nth-of-type(4) { transition-delay: .5s; }
.mk-motion [data-reveal="draw"] .spoke:nth-of-type(5) { transition-delay: .6s; }
.mk-motion [data-reveal="draw"] .spoke:nth-of-type(6) { transition-delay: .7s; }
.mk-motion [data-reveal="draw"] .spoke:nth-of-type(7) { transition-delay: .8s; }
.mk-motion [data-reveal="draw"] .spoke:nth-of-type(8) { transition-delay: .9s; }
.mk-motion [data-reveal="draw"] :is(.ring, .map .ill, .mico, .bad, .bad-t) { transition-delay: .9s; }
.mk-motion [data-reveal="draw"] .legend li { transition-delay: 1s; }
.mk-motion [data-reveal="draw"] .legend li:nth-child(n + 3) { transition-delay: 1.15s; }
.mk-motion [data-reveal="draw"] .legend li:nth-child(n + 5) { transition-delay: 1.3s; }
.mk-motion [data-reveal="draw"] :is(.pst, .sst):nth-child(2) { transition-delay: .25s; }
.mk-motion [data-reveal="draw"] :is(.pst, .sst):nth-child(3) { transition-delay: .5s; }
.mk-motion [data-reveal="draw"] :is(.pst, .sst):nth-child(4) { transition-delay: .75s; }
.mk-motion [data-reveal="draw"] :is(.pst, .sst):nth-child(5) { transition-delay: 1s; }
.mk-motion [data-reveal="draw"] :is(.pst, .sst):nth-child(6) { transition-delay: 1.25s; }
.mk-motion [data-reveal="draw"] .pst .seg { transition-delay: inherit; transition-duration: 1.6s; }
.mk-motion [data-reveal="draw"] .pst :is(.gate, .plink) { transition-delay: .5s; }
.mk-motion [data-reveal="draw"] :is(.pst:nth-child(2), .pst:nth-child(3), .pst:nth-child(4), .pst:nth-child(5)) :is(.gate, .plink) { transition-delay: 1s; }

/* ------------------------------------------------------------------ the inner pages' scenes */
/* a statement stands still on a short stage while it lights; it ends clear of the corner of
   "Pause all motion" */
.mk-motion .ps-words:has(> .pwords__track) { padding-block: 0; }
.mk-motion .pwords__track { block-size: 200svh; }
.mk-motion .pwords__stage { position: sticky; inset-block-start: var(--top-clear); display: flex; align-items: center; block-size: calc(100svh - var(--top-clear)); padding-block: 16px var(--mk-foot); }
.mk-motion .pwords__stage > .pwords__in { inline-size: min(1320px, 100% - 2 * var(--gut)); }
/* a principle's icon and name stay in sight beside it on a wide screen */
@media (min-width: 900px) { .mk-motion .pprin__mark { position: sticky; inset-block-start: calc(var(--top-clear) + 40px); } }
/* the opening's words end clear of the corner of "Pause all motion" */
.mk-motion .popen__words { padding-block-end: max(clamp(56px, 10vh, 112px), calc(var(--mk-foot) + 16px)); }
/* the slow light of the ink scenes, the opening and the band that leads on: one soft warm
   light each, over a fine grain, under every word, never gold; its tone from data-tone */
.mk-motion :is(.pscene--ink, .popen, .pnext)::before { content: ""; position: absolute; inset: -10%; z-index: 0; pointer-events: none; opacity: .4; background: url('/grain.png') 0 0 / 128px 128px, radial-gradient(36% 40% at 30% 36%, rgba(240, 181, 106, .26), rgba(240, 181, 106, 0)); animation: mk-light 38s ease-in-out infinite alternate; }
.mk-motion [data-tone="blue"]::before { background: url('/grain.png') 0 0 / 128px 128px, radial-gradient(closest-side at 50% 44%, rgba(59, 78, 107, 1), rgba(59, 78, 107, 0)); }
.mk-motion [data-tone="lamp"]::before { background: url('/grain.png') 0 0 / 128px 128px, radial-gradient(34% 44% at 26% 70%, rgba(230, 160, 75, .3), rgba(230, 160, 75, 0)); }
.mk-motion :is(.pscene--ink, .popen, .pnext) > * { position: relative; z-index: 1; }
.mk-motion :is(.popen, .pnext) { overflow: clip; }
.mk-motion .pnext__arrow { transition: translate .8s var(--mk-ease); }
.mk-motion .pnext__a:hover .pnext__arrow { translate: calc(8px * var(--mk-dir, 1)) 0; }
.mk-motion .pgo__t { transition: translate .9s var(--mk-ease); }
.mk-motion .pgo__a:hover .pgo__t { translate: calc(14px * var(--mk-dir, 1)) 0; }

/* ------------------------------------------------------------------ stillness: "Pause all motion" (mk-still) and reduced motion (mk-reduced) */
:is(.mk-still, .mk-reduced) :is([data-reveal], .mk-window, .mk-window img, [data-reveal] img) { clip-path: none !important; scale: none !important; transition: none !important; }
:is(.mk-still, .mk-reduced) .mk-line__in { transform: none !important; transition: none !important; }
/* a block that was rising and a figure that was drawing stand whole at once (a transition
   already running would otherwise finish on its own time) */
:is(.mk-still, .mk-reduced) :is([data-reveal="rise"], [data-reveal="draw"] :is(.orbit, .spoke, .core, .core-t, .ring, .map .ill, .mico, .bad, .bad-t, .legend li, .pst, .seg, .gate, .plink, .axis .run, .axis .tend, .sst, .lanehead)) { opacity: 1 !important; translate: none !important; scale: none !important; transition: none !important; }
:is(.mk-still, .mk-reduced) :is(.mk-dot, .mk-follow) { display: none !important; }
@media (forced-colors: active) {
  .mk-rail a::after { background: CanvasText; }
  html.mk-leave::after { display: none; }
}
