/* The matrix of destiny's reading, second version (matrix-destiny-v2-page.js, a local look until it is accepted).
   The brand's light, line and stars as the past life's reading set them; the drawings are the matrix's own. Light is
   only ever a radial gradient that fades out inside its own box, so no edge of it shows. */

[data-matrix-design="v2"] { --mdv2-warm: 241 185 109; --mdv2-pale: 224 230 238; --mdv2-deep: #121722; --mdv2-gold: #ffd9a0; --mdv2-top: calc(var(--home-control-height) * 2 + var(--home-space-6)); }
.mdv2-reading { position: relative; margin-top: var(--home-space-24); color: var(--home-text); font-family: var(--home-font); font-synthesis: none; }
.mdv2-reading *, .mdv2-reading *::before, .mdv2-reading *::after { box-sizing: border-box; }
.mdv2-reading :is(button, a):focus-visible { outline: 2px solid var(--home-focus); outline-offset: 5px; }

/* ── The agreed blocks above the reading take its light ── */
.mdv2-lead { position: relative; isolation: isolate; }
.mdv2-lead__sky { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.mdv2-lead__sky::before { position: absolute; content: ''; background: radial-gradient(closest-side, rgb(var(--mdv2-warm) / 0.12), rgb(var(--mdv2-warm) / 0.04) 50%, transparent); transform: translate(-50%, -50%); }
.mdv2-lead--hero .mdv2-lead__sky::before { left: 72%; top: 46%; inline-size: 62%; block-size: 86%; }
.mdv2-lead--contents .mdv2-lead__sky::before { left: 30%; top: 32%; inline-size: 64%; block-size: 120%; }
.mdv2-lead__star { position: absolute; inline-size: 2px; block-size: 2px; border-radius: 50%; background: #e8eef8; opacity: 0.4; }
.mdv2-lead__star.is-bright { inline-size: 3px; block-size: 3px; background: #ffe2b5; box-shadow: 0 0 6px rgb(255 226 181 / 0.8); }
[data-matrix-design="v2"] .numerology-scene__plot .mdv2-hero__heart { stroke: none; }
[data-matrix-design="v2"] .numerology-scene__plot .mdv2-hero__flow .mdv2-spark { stroke-width: 2.5; }

/* ── A chapter's head: its place between two lines of light, the title and its golden line, a warm light behind ── */
.mdv2-chapter { margin: 0 0 var(--home-space-32); scroll-margin-top: var(--home-space-8); }
.mdv2-chapter:focus { outline: none; }
.mdv2-chapter:last-child { margin-bottom: 0; }
.mdv2-chapter > .numerology-sale-link { display: flex; inline-size: fit-content; margin: var(--home-space-16) auto 0; }
[data-matrix-design="v2"] .mdv2-hero__next { display: block; margin: var(--home-space-10) auto 0; }
.mdv2-chapter__head { position: relative; display: grid; justify-items: center; margin: 0 auto var(--home-space-16); max-inline-size: 48rem; text-align: center; isolation: isolate; }
.mdv2-chapter__head::before { position: absolute; z-index: -1; inset: -4rem -6% -3rem; content: ''; background: radial-gradient(closest-side, rgb(var(--mdv2-warm) / 0.13), rgb(var(--mdv2-warm) / 0.045) 48%, transparent); pointer-events: none; }
.mdv2-ornament { display: flex; align-items: center; gap: var(--home-space-3); margin-bottom: var(--home-space-5); color: var(--home-amber); }
.mdv2-ornament__line { inline-size: clamp(2.5rem, 9vw, 7rem); block-size: 1px; background: linear-gradient(90deg, transparent, rgb(var(--mdv2-warm) / 0.6)); transform-origin: right center; }
.mdv2-ornament__line:last-child { background: linear-gradient(90deg, rgb(var(--mdv2-warm) / 0.6), transparent); transform-origin: left center; }
.mdv2-ornament__star { inline-size: 1.05rem; block-size: 1.05rem; fill: #ffe2b5; filter: drop-shadow(0 0 0.4rem rgb(var(--mdv2-warm) / 0.9)); }
.mdv2-ornament__index { color: var(--home-text-muted); font-size: var(--home-type-label); letter-spacing: 0.16em; font-variant-numeric: lining-nums; }
.mdv2-chapter__title { margin: 0; font-size: var(--home-type-section); font-weight: 400; line-height: var(--home-line-section, 0.92); letter-spacing: -0.02em; text-wrap: balance; overflow-wrap: anywhere; }
.mdv2-chapter__title em { display: block; margin-top: var(--home-space-3); color: var(--home-amber); }
.mdv2-chapter__note { max-inline-size: 40rem; margin: var(--home-space-8) 0 0; color: var(--home-text-muted); font-size: var(--home-type-lead); line-height: 1.6; }
.mdv2-chapter__announcement { margin: var(--home-space-8) 0 0; color: var(--home-amber); }
.mdv2-chapter__announcement + .mdv2-chapter__note { margin-block-start: var(--home-space-4); }

/* ── Words and the drawing that rides beside them ── */
.mdv2-stage { display: grid; gap: var(--home-space-10); }
.mdv2-stage + .mdv2-stage, .mdv2-offer + .mdv2-stage, .numerology-sale + .mdv2-stage { margin-top: var(--home-space-16); }
.mdv2-stage__visual { position: relative; min-width: 0; inline-size: min(100%, 30rem); justify-self: center; }
.mdv2-stage__words { min-width: 0; }
.mdv2-slot + .mdv2-slot { margin-top: var(--home-space-16); }
.mdv2-slot__title { margin: 0 0 var(--home-space-10); color: var(--home-amber); font-size: var(--home-type-title); font-weight: 400; line-height: 1.25; }
.mdv2-slot__title::after { display: block; inline-size: 5rem; block-size: 1px; margin-top: var(--home-space-4); content: ''; background: linear-gradient(90deg, rgb(var(--mdv2-warm) / 0.7), transparent); }

/* ── A part: where its point stands, its number and theme, its words, how its number was added up ── */
.mdv2-part { position: relative; scroll-margin-top: calc(var(--mdv2-top) + var(--home-space-4)); }
.mdv2-part:focus { outline: none; }
.mdv2-part + .mdv2-part { margin-top: var(--home-space-16); }
.mdv2-place { display: flex; align-items: center; gap: var(--home-space-3); margin: 0 0 var(--home-space-4); color: var(--home-amber); font-size: var(--home-type-caption); letter-spacing: 0.16em; line-height: 1.4; text-transform: uppercase; }
.mdv2-place__dash { color: rgb(var(--mdv2-warm) / 0.55); letter-spacing: 0; }
.mdv2-place__value { color: var(--mdv2-gold); font-size: 1.5rem; font-weight: 400; font-variant-numeric: lining-nums; letter-spacing: 0; line-height: 1; text-shadow: 0 0 1.2rem rgb(var(--mdv2-warm) / 0.45); }
.mdv2-mark { flex: none; inline-size: 2.5rem; block-size: 2.5rem; overflow: visible; }
.mdv2-mark--tree { block-size: auto; aspect-ratio: 100 / 86; }
.mdv2-mark__lines { fill: none; stroke: rgb(var(--mdv2-pale) / 0.42); stroke-width: 14; stroke-linejoin: round; }
.mdv2-mark--tree .mdv2-mark__lines { stroke-width: 2.2; }
.mdv2-mark__node { fill: rgb(var(--mdv2-pale) / 0.45); }
.mdv2-mark__glow { fill: rgb(var(--mdv2-warm) / 0.32); transition: fill 1200ms ease-in-out; }
.mdv2-mark__dot { fill: var(--mdv2-gold); }
.mdv2-part.is-current .mdv2-mark__glow { fill: rgb(var(--mdv2-warm) / 0.6); }
.mdv2-reading .mdv2-part__title { margin: 0 0 var(--home-space-6); color: var(--home-text); font-size: var(--home-type-title); font-weight: 400; line-height: 1.2; text-wrap: balance; overflow-wrap: anywhere; }
.mdv2-copy p { margin: 0 0 var(--home-space-6); color: var(--home-text-soft); font-size: var(--home-type-lead); line-height: 1.65; overflow-wrap: anywhere; }
.mdv2-copy p:last-child { margin-bottom: 0; }
.mdv2-part__note { margin: 0; color: var(--home-text-muted); font-size: var(--home-type-lead); line-height: 1.6; }
.mdv2-reading .numerology-lock { margin-top: var(--home-space-8); }
.mdv2-reading .mdv2-offer { margin-block: var(--home-space-16); }
.mdv2-reading .numerology-sale { margin-bottom: var(--home-space-10); }

/* ── Drawings: the parts every one is made of ── */
.mdv2-figure { position: relative; inline-size: 100%; isolation: isolate; }
.mdv2-figure__glow { position: absolute; z-index: -1; inset: 0; background: radial-gradient(closest-side, rgb(var(--mdv2-pale) / 0.1), rgb(var(--mdv2-pale) / 0.03) 55%, transparent); pointer-events: none; }
.mdv2-plot { display: block; inline-size: 100%; block-size: auto; overflow: visible; }
.mdv2-figure--heart, .mdv2-figure--rays { aspect-ratio: 1; }
.mdv2-figure--tree { aspect-ratio: 600 / 660; }
.mdv2-figure--bridge { aspect-ratio: 680 / 720; }
.mdv2-figure--family { aspect-ratio: 620 / 600; }
.mdv2-figure--age { aspect-ratio: 1; }
.mdv2-figure .mdv2-plot { block-size: 100%; }
.mdv2-sky circle { fill: #e8eef8; opacity: 0.38; }
.mdv2-sky circle.is-bright { fill: #ffe2b5; opacity: 0.7; }
.mdv2-glow circle { stroke: none; }
.mdv2-halo { opacity: 0; transition: opacity 1400ms ease-in-out; }
.mdv2-halo.is-lit { opacity: 1; }
.mdv2-halo.is-near { opacity: 0.4; }
.mdv2-faint { fill: none; stroke: rgb(var(--mdv2-pale) / 0.14); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mdv2-faint--ray { stroke: rgb(var(--mdv2-pale) / 0.1); }
.mdv2-faint--diamond { stroke-dasharray: 3 5; }
.mdv2-link { fill: none; stroke: rgb(var(--mdv2-warm) / 0); stroke-width: 1.4; stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; transition: stroke 1200ms ease-in-out; }
.mdv2-link.is-lit { stroke: rgb(var(--mdv2-warm) / 0.75); }
.mdv2-ring { fill: var(--mdv2-deep); stroke: rgb(var(--mdv2-pale) / 0.34); stroke-width: 1.2; vector-effect: non-scaling-stroke; transition: stroke 1200ms ease-in-out, fill 1200ms ease-in-out, stroke-width 1200ms ease-in-out, stroke-opacity 800ms ease-in-out; }
.mdv2-ring--quiet { fill: none; stroke: rgb(var(--mdv2-pale) / 0.15); }
.mdv2-ring--centre { stroke: rgb(var(--mdv2-warm) / 0.6); }
.mdv2-ring.is-near { stroke: rgb(var(--mdv2-warm) / 0.75); }
.mdv2-ring.is-next { stroke: rgb(var(--mdv2-warm) / 0.42); stroke-dasharray: 3 4; }
.mdv2-ring.is-lit { fill: rgb(32 27 22); stroke: var(--home-amber); stroke-width: 2; }
.mdv2-number { fill: rgb(var(--mdv2-pale) / 0.7); font-family: var(--home-font); font-size: calc(var(--mdv2-size, 20) * 1px); font-variant-numeric: lining-nums; text-anchor: middle; dominant-baseline: central; transition: fill 1200ms ease-in-out, fill-opacity 800ms ease-in-out; }
.mdv2-number.is-near { fill: #f1d2a6; }
.mdv2-number.is-lit { fill: var(--mdv2-gold); }
.mdv2-caption { fill: rgb(var(--mdv2-pale) / 0.62); font-family: var(--home-font); font-size: var(--mdv2-caption, 15px); letter-spacing: 0.14em; text-anchor: middle; dominant-baseline: central; text-transform: uppercase; transition: fill 1200ms ease-in-out; }
.mdv2-caption--start { text-anchor: start; }
.mdv2-caption--end { text-anchor: end; }
.mdv2-caption--faint { fill: rgb(var(--mdv2-pale) / 0.4); letter-spacing: 0.08em; text-transform: none; }
.mdv2-caption.is-lit { fill: var(--home-amber); }
.mdv2-spark { fill: none; stroke: #ffe2b5; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0.12 1; stroke-dashoffset: 0.12; opacity: 0; vector-effect: non-scaling-stroke; }
.mdv2-star { fill: #ffe2b5; transform-box: fill-box; transform-origin: center; }

/* The heart: the four sides light the arcana of the centre. */
.mdv2-figure--heart { --mdv2-caption: 22px; }
.mdv2-figure--heart .mdv2-heart__ghost { stroke: rgb(var(--mdv2-pale) / 0.16); }
.mdv2-figure--heart .mdv2-heart__dial { stroke: rgb(var(--mdv2-warm) / 0.32); }
.mdv2-figure--heart .mdv2-ring--quiet { stroke: rgb(var(--mdv2-pale) / 0.2); }
.mdv2-figure--heart .mdv2-heart__ray { fill: none; stroke: rgb(var(--mdv2-warm) / 0.6); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.mdv2-figure--heart .mdv2-heart__edge { stroke: rgb(var(--mdv2-warm) / 0.75); stroke-width: 1.6; }
.mdv2-figure--heart .mdv2-number { fill: var(--mdv2-gold); }
.mdv2-figure--heart .mdv2-halo { opacity: 0.6; }
.mdv2-heart__card { position: absolute; left: 50%; top: 50%; inline-size: 25%; translate: -50% -50%; }

/* The rays: the whole octagram at one scale. The point read turns gold, a ring rises from it once, its name stands
   beside it and the rest of the matrix steps back — the drawing never moves under the reader. */
.mdv2-figure--rays { --mdv2-caption: 20px; }
.mdv2-rays__ray { fill: none; stroke: rgb(var(--mdv2-warm) / 0); stroke-width: 2.4; stroke-linecap: round; vector-effect: non-scaling-stroke; transition: stroke 700ms ease-in-out; }
.mdv2-rays__ray.is-lit { stroke: rgb(var(--mdv2-warm) / 0.75); }
.mdv2-focus { fill: none; stroke: rgb(var(--mdv2-warm) / 0.85); stroke-width: 1.4; opacity: 0; vector-effect: non-scaling-stroke; transition: opacity 600ms ease-out; }
.mdv2-focus.is-lit { opacity: 1; }
.mdv2-beacon { fill: none; stroke: #ffe2b5; stroke-width: 2; opacity: 0; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; }
.mdv2-rays__origin { fill: rgb(var(--mdv2-pale) / 0.5); letter-spacing: 0.1em; opacity: 0; transition: opacity 700ms ease-in-out, fill 700ms ease-in-out; }
.mdv2-rays__origin:is(.is-lit, .is-near) { opacity: 1; }
.mdv2-figure--rays :is(.mdv2-ring, .mdv2-number) { transition: opacity 700ms ease-in-out, stroke 700ms ease-in-out, fill 700ms ease-in-out, stroke-width 700ms ease-in-out, stroke-opacity 800ms ease-in-out, fill-opacity 800ms ease-in-out; }
/* Only the edges and the figures step back: the disc of every ring stays whole and keeps the lines under it hidden. */
.mdv2-figure--rays.is-reading .mdv2-ring:not(.is-lit, .is-near, .mdv2-ring--centre) { stroke-opacity: 0.4; }
.mdv2-figure--rays.is-reading .mdv2-number:not(.is-lit, .is-near) { fill-opacity: 0.42; }
.mdv2-figure--rays .mdv2-ring.is-lit { fill: rgb(32 27 22); stroke-width: 2.4; }
.mdv2-figure--rays .mdv2-number.is-lit { fill: var(--mdv2-gold); }
/* The lens: a round window over the octagram that comes gently near the point read; the name rides with the point. */
.mdv2-lens { position: relative; inline-size: 100%; aspect-ratio: 1; overflow: hidden; -webkit-mask-image: radial-gradient(closest-side, #000 80%, transparent); mask-image: radial-gradient(closest-side, #000 80%, transparent); }
.mdv2-lens > .mdv2-figure--rays { transform-origin: 50% 50%; transition: transform 1700ms cubic-bezier(0.45, 0, 0.2, 1); }
.mdv2-lens > .mdv2-callout { transition: opacity 450ms ease-out, translate 450ms ease-out, left 1700ms cubic-bezier(0.45, 0, 0.2, 1), top 1700ms cubic-bezier(0.45, 0, 0.2, 1); }
/* The name of the place read, beside its ring. */
.mdv2-callout { position: absolute; z-index: 2; padding: 0.3rem 0.7rem; border-radius: 999px; background: rgb(22 19 16 / 0.86); box-shadow: 0 0 0 1px rgb(var(--mdv2-warm) / 0.35), 0 0.5rem 1.5rem rgb(0 0 0 / 0.45), 0 0 1.2rem rgb(var(--mdv2-warm) / 0.18); color: #ffe2b5; font-size: var(--home-type-caption); letter-spacing: 0.14em; line-height: 1.2; text-transform: uppercase; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 450ms ease-out, translate 450ms ease-out; }
.mdv2-callout[data-side="above"] { translate: -50% calc(-100% + 0.35rem); }
.mdv2-callout[data-side="right"] { translate: -0.35rem -50%; }
.mdv2-callout[data-side="left"] { translate: calc(-100% + 0.35rem) -50%; }
.mdv2-callout:is([data-side="top"], [data-side="below"]) { translate: -50% -0.35rem; }
.mdv2-callout.is-shown { opacity: 1; }
.mdv2-callout.is-shown[data-side="above"] { translate: -50% -100%; }
.mdv2-callout.is-shown[data-side="right"] { translate: 0 -50%; }
.mdv2-callout.is-shown[data-side="left"] { translate: -100% -50%; }
.mdv2-callout.is-shown:is([data-side="top"], [data-side="below"]) { translate: -50% 0; }
/* The name beside a family point: it hangs from its anchor without moving; the old name fades where it stood, the new
   one comes up a breath later beside its ring, growing a little out of the side that faces it. */
.mdv2-callout--fade { scale: 0.96; transition: opacity 260ms ease-out, scale 260ms ease-out; }
.mdv2-callout--fade[data-side="above"] { translate: -50% -100%; transform-origin: 50% 100%; }
.mdv2-callout--fade[data-side="right"] { translate: 0 -50%; transform-origin: 0 50%; }
.mdv2-callout--fade[data-side="left"] { translate: -100% -50%; transform-origin: 100% 50%; }
.mdv2-callout--fade:is([data-side="top"], [data-side="below"]) { translate: -50% 0; transform-origin: 50% 0; }
.mdv2-callout--fade.is-shown { scale: 1; transition: opacity 480ms cubic-bezier(0.22, 0.7, 0.2, 1) 180ms, scale 620ms cubic-bezier(0.22, 0.7, 0.2, 1) 180ms; }
.mdv2-callout--fade.is-placing { transition: none; }
.mdv2-callout--measure { left: 0; top: 0; visibility: hidden; translate: none; transition: none; }

/* The drawings that follow the reading in the later chapters speak the same way: the place read is gold and sends out
   its ring once, what it was made of stays warm, the rest steps back a little. */
.mdv2-figure:is(.mdv2-figure--tree, .mdv2-figure--bridge) :is(.mdv2-ring, .mdv2-number) { transition: opacity 900ms ease-in-out, stroke 1200ms ease-in-out, fill 1200ms ease-in-out, stroke-width 1200ms ease-in-out, stroke-opacity 800ms ease-in-out, fill-opacity 800ms ease-in-out; }
.mdv2-figure:is(.mdv2-figure--tree, .mdv2-figure--bridge).is-reading .mdv2-ring:not(.is-lit, .is-near, .is-next, .mdv2-ring--centre) { stroke-opacity: 0.45; }
.mdv2-figure:is(.mdv2-figure--tree, .mdv2-figure--bridge).is-reading .mdv2-number:not(.is-lit, .is-near) { fill-opacity: 0.5; }
.mdv2-figure--tree .mdv2-caption.is-near { fill: rgb(var(--mdv2-warm) / 0.85); }
.mdv2-figure:is(.mdv2-figure--tree, .mdv2-figure--bridge) .mdv2-ring.is-lit, .mdv2-figure--family .mdv2-ring--father.is-lit { fill: rgb(32 27 22); stroke: var(--home-amber); stroke-width: 2.2; }
.mdv2-figure:is(.mdv2-figure--tree, .mdv2-figure--bridge) .mdv2-number.is-lit, .mdv2-figure--family .mdv2-number.mdv2-ring--father.is-lit { fill: var(--mdv2-gold); }
.mdv2-figure--family .mdv2-ring--mother.is-lit { stroke-width: 2.2; }
.mdv2-figure--family[data-side="father"] circle.mdv2-ring--father:not(.is-lit, .is-near),
.mdv2-figure--family[data-side="mother"] circle.mdv2-ring--mother:not(.is-lit, .is-near) { stroke-opacity: 0.7; }
.mdv2-figure--family[data-side="father"] .mdv2-number.mdv2-ring--father:not(.is-lit, .is-near),
.mdv2-figure--family[data-side="mother"] .mdv2-number.mdv2-ring--mother:not(.is-lit, .is-near) { fill-opacity: 0.7; }
.mdv2-figure--family .mdv2-veil { stroke: none; }

/* The tail: three arcana going down from the centre. */
.mdv2-tail { position: relative; inline-size: 100%; max-inline-size: 64rem; aspect-ratio: 960 / 470; margin: 0 auto var(--home-space-6); isolation: isolate; }
.mdv2-tail__plot { position: absolute; z-index: -1; inset: 0; block-size: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mdv2-tail .mdv2-tail__ray { fill: none; stroke: rgb(var(--mdv2-warm) / 0.55); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.mdv2-tail__cards { position: absolute; inset: 0; }
.mdv2-tail .mdv2-card { position: absolute; }
.mdv2-card--step-1 { left: 27.5%; top: 9%; inline-size: 12.5%; }
.mdv2-card--step-2 { left: 49%; top: 19%; inline-size: 13.5%; }
.mdv2-card--step-3 { left: 71%; top: 29%; inline-size: 15%; }
.mdv2-card__place { position: absolute; left: 50%; top: calc(100% + 2.25rem); inline-size: max-content; max-inline-size: 11rem; color: var(--home-text-muted); font-size: var(--home-type-micro); letter-spacing: 0.14em; line-height: 1.3; text-align: center; text-transform: uppercase; translate: -50% 0; }
.mdv2-part--tail { max-inline-size: 46rem; margin: 0 auto; text-align: center; }
.mdv2-tail__head { margin-bottom: var(--home-space-6); }
.mdv2-tail__label { margin: 0 0 var(--home-space-3); color: var(--home-amber); font-size: var(--home-type-caption); letter-spacing: 0.16em; font-variant-numeric: lining-nums; text-transform: uppercase; }
.mdv2-reading .mdv2-tail__title { margin: 0; color: var(--home-amber); font-size: var(--home-type-numeral); font-style: italic; font-weight: 400; line-height: 1; text-shadow: 0 0 2.5rem rgb(var(--mdv2-warm) / 0.35); }
.mdv2-reading :is(.mdv2-part__title, .mdv2-tail__title).numerology-preview-heading { color: var(--home-amber); font-size: var(--home-type-title); line-height: 1.35; }
.mdv2-tail__short { margin: 0 auto; max-inline-size: 38rem; color: var(--home-text); font-size: calc(var(--home-type-lead) * 1.15); line-height: 1.55; }
.mdv2-tail__story { margin-top: var(--home-space-10); text-align: start; }
.mdv2-reading .mdv2-tail__part { margin: var(--home-space-10) 0 var(--home-space-5); color: var(--home-amber); font-size: var(--home-type-title); font-weight: 400; }
.mdv2-part--tail > .numerology-lock { margin-inline: auto; }
.mdv2-part--tail > .numerology-lock .numerology-lock__veil { justify-items: center; }

/* Cards that lean after the pointer and give under a finger. */
.mdv2-card { position: relative; perspective: 900px; }
.mdv2-card__aura { position: absolute; z-index: 0; inset: -18% -36%; border-radius: 50%; background: var(--home-reading-aura); pointer-events: none; }
.mdv2-card__face { position: relative; z-index: 1; display: block; cursor: grab; transition: scale 240ms cubic-bezier(0.22, 0.7, 0.2, 1); -webkit-user-select: none; user-select: none; }
.mdv2-card__face:active { scale: 0.955; cursor: grabbing; }
.mdv2-card__picture { display: block; overflow: hidden; border-radius: 0.55rem; box-shadow: 0 1.25rem 2.5rem rgb(0 0 0 / 0.55), 0 0 0 1px rgb(var(--mdv2-warm) / 0.24), 0 0 2.5rem rgb(var(--mdv2-warm) / 0.14); }
.mdv2-card__picture img { display: block; inline-size: 100%; block-size: auto; }
.mdv2-card__shine { position: absolute; inset: 0; overflow: hidden; border-radius: 0.55rem; pointer-events: none; }
.mdv2-card__shine::before { position: absolute; inset: -20% -80%; content: ''; background: linear-gradient(105deg, transparent 42%, rgb(255 236 205 / 0.32) 50%, transparent 58%); transform: translateX(-60%); opacity: 0; }
.mdv2-card__number { position: absolute; z-index: 2; left: 50%; bottom: -1.1rem; display: grid; place-items: center; min-inline-size: 2.3rem; block-size: 2.3rem; padding: 0 0.4rem; border: 1px solid var(--home-amber); border-radius: 999px; background: #17130f; box-shadow: 0 0 1rem rgb(var(--mdv2-warm) / 0.35); color: var(--mdv2-gold); font-size: 1.1rem; font-variant-numeric: lining-nums; line-height: 1; translate: -50% 0; }

/* The tree of the purposes. */
.mdv2-figure--tree { --mdv2-caption: 15px; }
.mdv2-tree__branch { fill: none; stroke: rgb(var(--mdv2-pale) / 0.24); stroke-width: 1.2; stroke-linecap: round; vector-effect: non-scaling-stroke; transition: stroke 1400ms ease-in-out, stroke-width 1400ms ease-in-out; }
.mdv2-tree__branch--bough { stroke-width: 1.6; }
.mdv2-tree__branch--crown { stroke-width: 2; stroke: rgb(var(--mdv2-warm) / 0.32); }
.mdv2-tree__branch.is-next { stroke: rgb(var(--mdv2-warm) / 0.4); }
.mdv2-tree__branch.is-near { stroke: rgb(var(--mdv2-warm) / 0.55); }
.mdv2-tree__branch.is-lit { stroke: rgb(var(--mdv2-warm) / 0.85); stroke-width: 2.2; }
.mdv2-figure--tree .mdv2-ring--purpose { stroke: rgb(var(--mdv2-warm) / 0.5); }
.mdv2-figure--tree .mdv2-ring--root { stroke: rgb(var(--mdv2-pale) / 0.22); }
.mdv2-tree__ground-line { stroke: rgb(var(--mdv2-pale) / 0.08); }
.mdv2-figure--tree .mdv2-tree__ground { opacity: 0.45; }

/* The bridge of relationships and money. */
.mdv2-figure--bridge { --mdv2-caption: 16px; }
.mdv2-bridge__line { fill: none; stroke: rgb(var(--mdv2-pale) / 0.34); stroke-width: 1.4; stroke-linecap: round; vector-effect: non-scaling-stroke; transition: stroke 1400ms ease-in-out, stroke-width 1400ms ease-in-out; }
.mdv2-bridge__line.is-lit { stroke: rgb(var(--mdv2-warm) / 0.85); stroke-width: 2.4; }
.mdv2-figure--bridge .mdv2-bridge__ray { stroke: rgb(var(--mdv2-pale) / 0.14); }
.mdv2-figure--bridge .mdv2-ring--pillar { stroke: rgb(var(--mdv2-pale) / 0.45); }

/* The two family lines, the father's warm and the mother's pale; the other line steps back while one is read. */
.mdv2-figure--family { --mdv2-caption: 14px; }
.mdv2-family__line { fill: none; stroke-width: 1.2; vector-effect: non-scaling-stroke; transition: opacity 1400ms ease-in-out; }
.mdv2-family__line--father { stroke: rgb(var(--mdv2-warm) / 0.42); }
.mdv2-family__line--mother { stroke: rgb(var(--mdv2-pale) / 0.36); }
.mdv2-family__half { fill: none; stroke-width: 2.4; stroke-linecap: round; opacity: 0; vector-effect: non-scaling-stroke; transition: opacity 1400ms ease-in-out; }
.mdv2-family__half--father { stroke: rgb(var(--mdv2-warm) / 0.85); }
.mdv2-family__half--mother { stroke: rgb(236 241 248 / 0.8); }
.mdv2-family__half.is-lit { opacity: 1; }
.mdv2-figure--family .mdv2-ring--father { stroke: rgb(var(--mdv2-warm) / 0.5); }
.mdv2-figure--family .mdv2-ring--mother { stroke: rgb(var(--mdv2-pale) / 0.45); }
.mdv2-figure--family .mdv2-ring--mother.is-lit { fill: #1a1f2b; stroke: #e8eef8; }
.mdv2-figure--family .mdv2-number.mdv2-ring--mother.is-lit { fill: #f4f1ea; }
.mdv2-family__word--father { fill: rgb(var(--mdv2-warm) / 0.75); }
.mdv2-figure--family .mdv2-family__ghost { stroke: rgb(var(--mdv2-pale) / 0.09); }
.mdv2-figure--family .mdv2-family__ghost-ring { stroke: rgb(var(--mdv2-pale) / 0.1); }
.mdv2-figure--family :is(.mdv2-ring, .mdv2-number, .mdv2-caption) { transition: opacity 1400ms ease-in-out, stroke 1200ms ease-in-out, fill 1200ms ease-in-out, stroke-width 1200ms ease-in-out, stroke-opacity 800ms ease-in-out, fill-opacity 800ms ease-in-out; }
.mdv2-figure--family[data-side="father"] :is(.mdv2-family__line--mother, .mdv2-family__word--mother) { opacity: 0.4; }
.mdv2-figure--family[data-side="mother"] :is(.mdv2-family__line--father, .mdv2-family__word--father) { opacity: 0.4; }
.mdv2-figure--family[data-side="father"] circle.mdv2-ring--mother, .mdv2-figure--family[data-side="mother"] circle.mdv2-ring--father { stroke-opacity: 0.4; }
.mdv2-figure--family[data-side="father"] .mdv2-number.mdv2-ring--mother, .mdv2-figure--family[data-side="mother"] .mdv2-number.mdv2-ring--father { fill-opacity: 0.4; }

/* The circle of years: it follows the passage read — its period drawn along the dial, the years it names marked. */
.mdv2-age { display: grid; gap: var(--home-space-12); align-items: start; }
.mdv2-age__visual { min-width: 0; inline-size: min(100%, 34rem); justify-self: center; }
.mdv2-figure--age { --mdv2-caption: 17px; }
.mdv2-figure--age .mdv2-age__matrix { stroke: rgb(var(--mdv2-pale) / 0.08); }
.mdv2-figure--age .mdv2-age__rays { stroke: rgb(var(--mdv2-warm) / 0.12); }
.mdv2-age__dial { fill: none; stroke: rgb(var(--mdv2-warm) / 0.4); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.mdv2-age__ticks { fill: none; stroke: rgb(var(--mdv2-pale) / 0.3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mdv2-age__label { fill: rgb(var(--mdv2-pale) / 0.5); letter-spacing: 0.06em; transition: fill 600ms ease-out; }
.mdv2-age__label.is-lit { fill: #ffe2b5; }
.mdv2-age__span { fill: none; stroke: rgb(var(--mdv2-warm) / 0.5); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 0 80; opacity: 0; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgb(var(--mdv2-warm) / 0.55));
    transition: stroke-dasharray 1200ms cubic-bezier(0.45, 0, 0.2, 1), stroke-dashoffset 1200ms cubic-bezier(0.45, 0, 0.2, 1), opacity 700ms ease-out; }
.mdv2-age__span.is-shown { opacity: 1; }
.mdv2-age__hand { fill: none; stroke: rgb(var(--mdv2-warm) / 0.6); stroke-width: 1.4; stroke-dasharray: 2 5; vector-effect: non-scaling-stroke; }
.mdv2-age__walked { fill: none; stroke: rgb(var(--mdv2-warm) / 0.75); stroke-width: 2.4; vector-effect: non-scaling-stroke; }
.mdv2-age__now { fill: #fff8ec; stroke: none; }
.mdv2-figure--age .mdv2-ring--age { stroke: rgb(var(--mdv2-warm) / 0.5); transition: opacity 600ms ease-out, stroke 600ms ease-out, fill 600ms ease-out, stroke-opacity 800ms ease-in-out, fill-opacity 800ms ease-in-out; }
.mdv2-figure--age .mdv2-ring--age.is-today { stroke: rgb(var(--mdv2-warm) / 0.8); }
.mdv2-figure--age .mdv2-ring--age.is-near { stroke: var(--home-amber); }
.mdv2-figure--age .mdv2-number { transition: opacity 600ms ease-out, fill 600ms ease-out, stroke-opacity 800ms ease-in-out, fill-opacity 800ms ease-in-out; }
.mdv2-figure--age.is-reading circle.mdv2-ring--age:not(.is-lit, .is-near) { stroke-opacity: 0.5; }
.mdv2-figure--age.is-reading .mdv2-number:not(.is-lit, .is-near) { fill-opacity: 0.5; }
.mdv2-age__mark { opacity: 0; transform: translate(var(--mdv2-out-x, 0), var(--mdv2-out-y, 0)); pointer-events: none;
    transition: opacity 700ms ease-out var(--mdv2-delay, 0ms), transform 1000ms cubic-bezier(0.22, 0.7, 0.2, 1) var(--mdv2-delay, 0ms); }
.mdv2-age__mark.is-shown { opacity: 1; transform: none; }
.mdv2-age__stem { fill: none; stroke: rgb(var(--mdv2-warm) / 0.55); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mdv2-age__dot { fill: #ffe2b5; stroke: none; filter: drop-shadow(0 0 5px rgb(var(--mdv2-warm) / 0.9)); }
.mdv2-age__badge { fill: rgb(32 27 22); stroke: var(--home-amber); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.mdv2-age__value { fill: #fff3df; font-family: var(--home-font); font-size: 20px; font-variant-numeric: lining-nums; text-anchor: middle; dominant-baseline: central; }
.mdv2-age__age { fill: #ffe2b5; font-family: var(--home-font); font-size: 18px; font-variant-numeric: lining-nums; letter-spacing: 0.04em; text-anchor: middle; dominant-baseline: central; }
.mdv2-age__words { min-width: 0; }
.mdv2-age__now-line { margin: 0 0 var(--home-space-8); color: var(--home-text); font-size: calc(var(--home-type-lead) * 1.1); line-height: 1.55; }
.mdv2-age__table { inline-size: 100%; border-collapse: separate; border-spacing: 0.25rem; font-variant-numeric: lining-nums; }
.mdv2-age__table th { inline-size: 1%; padding-inline-end: var(--home-space-3); color: var(--home-text-muted); font-size: var(--home-type-caption); font-weight: 400; letter-spacing: 0.08em; text-align: start; white-space: nowrap; }
.mdv2-age__cell { padding: 0.3rem 0; border-radius: 0.5rem; background: rgb(var(--mdv2-pale) / 0.035); text-align: center; transition: background-color 500ms ease-out, box-shadow 500ms ease-out; }
.mdv2-age__cell-age { display: block; color: var(--home-text-faint); font-size: 0.6rem; line-height: 1.2; }
.mdv2-age__cell-value { display: block; color: var(--home-text-soft); font-size: 0.95rem; font-weight: 400; line-height: 1.3; }
.mdv2-age__cell.is-main { background: rgb(var(--mdv2-warm) / 0.08); box-shadow: inset 0 0 0 1px rgb(var(--mdv2-warm) / 0.3); }
.mdv2-age__cell.is-main .mdv2-age__cell-value { color: var(--mdv2-gold); }
.mdv2-age__cell.is-span { background: rgb(var(--mdv2-warm) / 0.1); }
.mdv2-age__cell.is-read { background: rgb(var(--mdv2-warm) / 0.24); box-shadow: inset 0 0 0 1px var(--home-amber); }
.mdv2-age__cell.is-read .mdv2-age__cell-value { color: #fff3df; }
.mdv2-age__cell.is-now { background: rgb(var(--mdv2-warm) / 0.2); box-shadow: inset 0 0 0 1px var(--home-amber), 0 0 1rem rgb(var(--mdv2-warm) / 0.35); }
.mdv2-age__cell.is-now .mdv2-age__cell-value { color: #fff8ec; }
.mdv2-age__story { margin-top: var(--home-space-12); }
.mdv2-age__heading { display: grid; gap: var(--home-space-2); }
.mdv2-age__range { color: var(--home-amber); font-size: var(--home-type-caption); letter-spacing: 0.16em; font-variant-numeric: lining-nums; }

/* The editorial pilot's surrounding words: a chapter's lead, what a place is about, the captions of the drawings. */
.mdv2-reading .mdv2-guide { max-inline-size: 46rem; margin: 0 auto var(--home-space-8); color: var(--home-text-soft); font-size: var(--home-type-lead); line-height: 1.65; }
.mdv2-stage__words .mdv2-guide { margin-inline: 0; }
.mdv2-reading .mdv2-local { margin: 0 0 var(--home-space-6); color: var(--home-text-muted); font-size: var(--home-type-lead); line-height: 1.6; }
.mdv2-reading .mdv2-caption { max-inline-size: 42rem; margin: var(--home-space-4) auto var(--home-space-8); color: var(--home-text-muted); font-size: var(--home-type-caption); letter-spacing: 0.04em; line-height: 1.6; text-align: center; }
.mdv2-reading--pilot .mdv2-slot--compact .mdv2-part + .mdv2-part,
.mdv2-reading--pilot .mdv2-part--repeat + .mdv2-part--repeat { margin-top: var(--home-space-10); }
.mdv2-reading--pilot .mdv2-slot--compact .mdv2-local { margin-bottom: var(--home-space-3); }
.mdv2-reading :is(.mdv2-part, .mdv2-age__table-wrap, .mdv2-trio__bead, .mdv2-tail__section, .mdv2-chapter):focus-visible { outline: 1px solid var(--home-focus); outline-offset: var(--home-space-2); }
.mdv2-age__table-wrap { max-inline-size: 100%; overflow-x: auto; }
@media (min-width: 60rem) {
    .mdv2-age__visual { position: sticky; top: var(--mdv2-top); inline-size: 100%; }
    .mdv2-age__visual .mdv2-figure { max-inline-size: calc(var(--stable-screen-height, 100dvh) - var(--mdv2-top) - var(--home-space-16)); margin-inline: auto; }
}

/* ── The idea a part comes to: set apart under its words on a line of light, with the reading's star ── */
.mdv2-reading .mdv2-summary { position: relative; display: flex; align-items: flex-start; gap: var(--home-space-4); margin: var(--home-space-8) 0 0; padding: var(--home-space-2) 0 var(--home-space-2) var(--home-space-5); color: #f6e3c4; font-size: calc(var(--home-type-lead) * 1.06); font-style: italic; line-height: 1.55; text-wrap: pretty; }
.mdv2-reading .mdv2-summary::before { position: absolute; inset: 0 auto 0 0; inline-size: 1px; content: ''; background: linear-gradient(180deg, transparent, rgb(var(--mdv2-warm) / 0.85) 25%, rgb(var(--mdv2-warm) / 0.85) 75%, transparent); }
.mdv2-summary__mark { flex: none; inline-size: 0.85rem; block-size: 0.85rem; margin-top: 0.35em; fill: #ffe2b5; filter: drop-shadow(0 0 0.35rem rgb(var(--mdv2-warm) / 0.8)); }

/* ── A way to another place of the reading: a quiet chip that says where it leads ── */
.mdv2-reading .mdv2-route { display: inline-flex; align-items: center; gap: var(--home-space-4); min-block-size: 3rem; margin-top: var(--home-space-6); padding: var(--home-space-3) var(--home-space-5) var(--home-space-3) var(--home-space-3); border-radius: var(--home-radius-surface); background: rgb(255 255 255 / 0.035); color: var(--home-text); text-decoration: none; transition: background-color var(--home-duration-fast) ease-out; }
.mdv2-reading .mdv2-route[hidden] { display: none; }
.mdv2-reading .mdv2-route:is(:hover, :focus-visible) { background: rgb(var(--mdv2-warm) / 0.09); }
.mdv2-reading .mdv2-route:focus-visible { outline: 2px solid var(--home-focus); outline-offset: 0.25rem; }
.mdv2-route__sign { flex: none; inline-size: 2.25rem; block-size: 2.25rem; padding: 0.55rem; border-radius: 50%; background: rgb(var(--mdv2-warm) / 0.12); fill: none; stroke: var(--home-amber); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: background-color var(--home-duration-fast) ease-out, translate 300ms ease-out; }
.mdv2-route:is(:hover, :focus-visible) .mdv2-route__sign { background: rgb(var(--mdv2-warm) / 0.22); }
.mdv2-route:is(:hover, :focus-visible) .mdv2-route__sign--up { translate: 0 -0.15rem; }
.mdv2-route:is(:hover, :focus-visible) .mdv2-route__sign--down { translate: 0 0.15rem; }
.mdv2-route__words { display: grid; gap: 0.15rem; min-width: 0; }
.mdv2-route__label { color: var(--home-amber); font-size: var(--home-type-label); line-height: 1.35; }
.mdv2-route__note { color: var(--home-text-muted); font-size: var(--home-type-caption); letter-spacing: 0.02em; line-height: 1.45; overflow-wrap: anywhere; }
.mdv2-part--repeat .mdv2-route { margin-top: 0; }
.mdv2-reading .mdv2-return { display: flex; inline-size: fit-content; }

/* ── Where else one explanation is read: a small octagram with its places and their names ── */
.mdv2-places { display: flex; align-items: center; gap: var(--home-space-5); margin-top: var(--home-space-8); }
.mdv2-places .mdv2-mark--places { inline-size: 3.75rem; block-size: 3.75rem; }
.mdv2-mark__glow--other { fill: rgb(var(--mdv2-warm) / 0.18); }
.mdv2-mark__dot--other { fill: rgb(var(--mdv2-warm) / 0.75); }
.mdv2-places__words { display: grid; gap: var(--home-space-2); min-width: 0; }
.mdv2-places__label { margin: 0; color: var(--home-text-muted); font-size: var(--home-type-caption); letter-spacing: 0.04em; line-height: 1.5; }
.mdv2-places__list { display: flex; flex-wrap: wrap; gap: var(--home-space-2); margin: 0; padding: 0; list-style: none; }
.mdv2-places__item { padding: 0.2rem 0.65rem; border-radius: 999px; background: rgb(255 255 255 / 0.045); color: var(--home-text-soft); font-size: var(--home-type-caption); letter-spacing: 0.06em; line-height: 1.6; transition: background-color 400ms ease-out, color 400ms ease-out; }
.mdv2-places__item.is-here { background: rgb(var(--mdv2-warm) / 0.14); color: #ffe2b5; }
.mdv2-places__item.is-origin { background: rgb(var(--mdv2-warm) / 0.26); color: #fff3df; box-shadow: 0 0 0 1px rgb(var(--mdv2-warm) / 0.6); }

/* ── The three lower points: three beads on one thread, read from the centre out ── */
.mdv2-trio__intro { max-inline-size: 40rem; margin: 0 0 var(--home-space-8); color: var(--home-text-soft); font-size: var(--home-type-lead); line-height: 1.65; }
.mdv2-trio__beads { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--home-space-6); margin: 0; padding: 0; list-style: none; }
.mdv2-trio__beads::before { position: absolute; z-index: 0; inset-block-start: 1.5rem; inset-inline: 1.5rem calc(33.333% - 1.5rem); block-size: 1px; content: ''; background: linear-gradient(90deg, rgb(var(--mdv2-warm) / 0.7), rgb(var(--mdv2-warm) / 0.35)); }
.mdv2-trio__bead { position: relative; z-index: 1; display: grid; align-content: start; gap: var(--home-space-3); min-width: 0; scroll-margin-top: calc(var(--mdv2-top) + var(--home-space-4)); }
.mdv2-trio__head { display: grid; justify-items: start; gap: var(--home-space-3); margin: 0; }
.mdv2-trio__number { display: grid; place-items: center; inline-size: 3rem; block-size: 3rem; border: 1px solid rgb(var(--mdv2-warm) / 0.65); border-radius: 50%; background: var(--mdv2-deep); box-shadow: 0 0 1rem rgb(var(--mdv2-warm) / 0.25); color: var(--mdv2-gold); font-size: 1.2rem; font-weight: 400; font-variant-numeric: lining-nums; line-height: 1; }
.mdv2-trio__number.is-outer { inline-size: 3.5rem; block-size: 3.5rem; margin-block-start: -0.25rem; border-color: var(--home-amber); background: rgb(32 27 22); box-shadow: 0 0 1.4rem rgb(var(--mdv2-warm) / 0.45); font-size: 1.35rem; }
.mdv2-trio__place { color: var(--home-amber); font-size: var(--home-type-caption); letter-spacing: 0.14em; line-height: 1.4; text-transform: uppercase; }
.mdv2-trio__role { margin: 0; color: var(--home-text-muted); font-size: var(--home-type-label); line-height: 1.6; }
.mdv2-trio { container: mdv2-trio / inline-size; }
/* Where the three do not fit side by side, they stand one under another on an upright thread. */
@container mdv2-trio (max-width: 32rem) {
    .mdv2-trio__beads { grid-template-columns: minmax(0, 1fr); gap: var(--home-space-8); }
    .mdv2-trio__beads::before { inset-block: 1.5rem 1.5rem; inset-inline: 1.75rem auto; inline-size: 1px; block-size: auto; background: linear-gradient(180deg, rgb(var(--mdv2-warm) / 0.7), rgb(var(--mdv2-warm) / 0.35)); transform-origin: top center; }
    .mdv2-trio__bead { grid-template-columns: 3.5rem minmax(0, 1fr); column-gap: var(--home-space-4); }
    .mdv2-trio__head { display: contents; }
    .mdv2-trio__number { grid-row: span 2; justify-self: center; }
    .mdv2-trio__number.is-outer { margin-block-start: 0; }
    .mdv2-trio__place { align-self: end; }
}

/* ── The bridge from one chapter to the next: a thread of light, the chapter's last words, the way on ── */
.mdv2-bridge { display: grid; justify-items: center; gap: var(--home-space-5); max-inline-size: 40rem; margin: var(--home-space-16) auto 0; text-align: center; }
.mdv2-bridge__thread { inline-size: 1px; block-size: var(--home-space-16); background: linear-gradient(180deg, transparent, rgb(var(--mdv2-warm) / 0.75)); transform-origin: top center; }
.mdv2-bridge__text { margin: 0; color: var(--home-text-soft); font-size: calc(var(--home-type-title) * 0.95); font-style: italic; line-height: 1.45; text-wrap: balance; }
.mdv2-bridge__star { inline-size: 0.95rem; block-size: 0.95rem; fill: #ffe2b5; filter: drop-shadow(0 0 0.4rem rgb(var(--mdv2-warm) / 0.9)); }
.mdv2-onward { display: inline-flex; align-items: center; gap: var(--home-space-3); min-block-size: 3rem; padding: 0 var(--home-space-3) 0 var(--home-space-6); border-radius: 999px; background: rgb(var(--mdv2-warm) / 0.1); box-shadow: inset 0 0 0 1px rgb(var(--mdv2-warm) / 0.4); color: #ffe2b5; font-size: var(--home-type-label); text-decoration: none; transition: background-color var(--home-duration-fast) ease-out; }
.mdv2-onward:is(:hover, :focus-visible) { background: rgb(var(--mdv2-warm) / 0.2); }
.mdv2-onward:focus-visible { outline: 2px solid var(--home-focus); outline-offset: 0.25rem; }
.mdv2-onward .mdv2-route__sign { inline-size: 2.25rem; block-size: 2.25rem; }
.mdv2-chapter:has(> .mdv2-bridge) { margin-bottom: var(--home-space-24); }

/* ── The story of the tail as one way up: the words in one even column, each part under the mark of its station,
   and beside them the tail's three numbers with the thread rising through the stations to the lesson's star ── */
.mdv2-part--story { max-inline-size: none; text-align: start; }
.mdv2-story { margin-top: var(--home-space-10); }
.mdv2-tail__section { scroll-margin-top: calc(var(--mdv2-top) + var(--home-space-4)); }
.mdv2-tail__section:focus { outline: none; }
.mdv2-tail__section + .mdv2-tail__section { margin-top: var(--home-space-16); }
.mdv2-reading .mdv2-tail__part { display: flex; align-items: center; gap: var(--home-space-4); margin: 0 0 var(--home-space-6); color: var(--home-amber); font-size: var(--home-type-title); font-weight: 400; line-height: 1.25; text-align: start; text-wrap: balance; }
.mdv2-story-mark { flex: none; inline-size: 2.75rem; block-size: 2.75rem; padding: 0.62rem; overflow: visible; border-radius: 50%; background: rgb(var(--mdv2-warm) / 0.07); box-shadow: inset 0 0 0 1px rgb(var(--mdv2-warm) / 0.42); fill: none; stroke: var(--home-amber); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: background-color 900ms ease-in-out, box-shadow 900ms ease-in-out; }
.mdv2-story-mark path { vector-effect: non-scaling-stroke; }
.mdv2-story-mark .is-filled { fill: #ffe2b5; stroke: none; }
.mdv2-tail__section.is-current .mdv2-story-mark { background: rgb(var(--mdv2-warm) / 0.18); box-shadow: inset 0 0 0 1px var(--home-amber), 0 0 1.25rem rgb(var(--mdv2-warm) / 0.35); }
.mdv2-figure--journey { aspect-ratio: 420 / 620; }
.mdv2-journey__ground { opacity: 0.55; }
.mdv2-journey__crown { opacity: 0.5; }
.mdv2-journey__wave { fill: none; stroke: rgb(var(--mdv2-warm) / 0.5); stroke-width: 1; opacity: 0.16; vector-effect: non-scaling-stroke; }
.mdv2-journey__wave--2 { opacity: 0.1; }
.mdv2-journey__wave--3 { opacity: 0.06; }
.mdv2-journey__triangle { fill: rgb(var(--mdv2-warm) / 0.03); stroke: rgb(var(--mdv2-warm) / 0.4); stroke-width: 1.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: stroke 1200ms ease-in-out, fill 1200ms ease-in-out; }
.mdv2-journey__triangle.is-near { stroke: rgb(var(--mdv2-warm) / 0.6); }
.mdv2-journey__triangle.is-lit { fill: rgb(var(--mdv2-warm) / 0.09); stroke: var(--home-amber); }
.mdv2-journey__halo { opacity: 0; transition: opacity 1400ms ease-in-out; }
.mdv2-journey__halo.is-near { opacity: 0.28; }
.mdv2-journey__halo.is-lit { opacity: 1; }
.mdv2-journey__thread { fill: none; stroke: rgb(var(--mdv2-pale) / 0.24); stroke-width: 1.2; stroke-dasharray: 2 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.mdv2-journey__way { fill: none; stroke: rgb(var(--mdv2-warm) / 0.85); stroke-width: 2.2; stroke-linecap: round; opacity: 0; vector-effect: non-scaling-stroke; transition: opacity 1400ms ease-in-out; }
.mdv2-journey__way.is-near { opacity: 0.5; }
.mdv2-journey__way.is-lit { opacity: 1; }
.mdv2-figure--journey .mdv2-ring--past { stroke: rgb(var(--mdv2-warm) / 0.5); }
.mdv2-figure--journey .mdv2-journey__medal { stroke: rgb(var(--mdv2-pale) / 0.3); }
.mdv2-figure--journey .mdv2-ring.is-lit { fill: rgb(32 27 22); stroke-width: 2.4; }
.mdv2-figure--journey .mdv2-number.is-lit { fill: var(--mdv2-gold); }
.mdv2-figure--journey :is(.mdv2-ring, .mdv2-number) { transition: stroke 1200ms ease-in-out, fill 1200ms ease-in-out, stroke-width 1200ms ease-in-out; }
.mdv2-journey__mark path { fill: none; stroke: rgb(var(--mdv2-pale) / 0.5); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: stroke 1200ms ease-in-out, fill 1200ms ease-in-out; }
.mdv2-journey__mark path.is-filled { fill: rgb(var(--mdv2-pale) / 0.45); stroke: none; filter: drop-shadow(0 0 0 rgb(var(--mdv2-warm) / 0)); transition: fill 1200ms ease-in-out, filter 1400ms ease-in-out; }
.mdv2-journey__mark.is-near path { stroke: rgb(var(--mdv2-warm) / 0.85); }
.mdv2-journey__mark.is-near path.is-filled { fill: rgb(var(--mdv2-warm) / 0.85); }
.mdv2-journey__mark.is-lit path { stroke: #ffe2b5; }
.mdv2-journey__mark.is-lit path.is-filled { fill: #ffe2b5; filter: drop-shadow(0 0 4px rgb(var(--mdv2-warm) / 0.9)); }
.mdv2-journey__rays path { fill: none; stroke: rgb(var(--mdv2-warm) / 0.22); stroke-width: 1.2; stroke-linecap: round; vector-effect: non-scaling-stroke; transition: stroke 1200ms ease-in-out; }
.mdv2-journey__rays.is-lit path { stroke: #ffe2b5; }

/* ── The close (reading-finale, numerology.css): the matrix as its seal ── */
.mdv2-seal { position: relative; inline-size: min(15rem, 62vw); aspect-ratio: 1; }
.mdv2-seal__plot { inline-size: 100%; block-size: 100%; }
.mdv2-seal__lines { fill: none; stroke: rgb(var(--mdv2-warm) / 0.42); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mdv2-seal__ring { fill: var(--mdv2-deep); stroke: rgb(var(--mdv2-warm) / 0.55); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.mdv2-seal__ring--centre { fill: rgb(32 27 22); stroke: var(--home-amber); stroke-width: 1.8; }
.mdv2-seal__number { fill: #f1d2a6; font-family: var(--home-font); font-size: 44px; font-variant-numeric: lining-nums; text-anchor: middle; dominant-baseline: central; }
.mdv2-seal__number--centre { fill: #fff3df; font-size: 64px; }
.mdv2-seal__light { stroke: none; }

/* ── How the numbers were added up (reading-method, numerology.css): the steps of the three purposes ── */
.mdv2-method__sums .mdv2-guide { margin: 0 0 var(--home-space-8); max-inline-size: none; }
.mdv2-method__parts { display: grid; gap: var(--home-space-8); }
.mdv2-method__parts .mdv2-part + .mdv2-part { margin-top: 0; }
.mdv2-method__parts .mdv2-local { margin-bottom: 0; font-size: var(--home-type-label); }

/* ── «How to read»: the small drawings of its cards ── */
.mdv2-guide-block { margin-block: var(--home-space-16) 0; }
.mdv2-guide-icon { inline-size: auto; block-size: 100%; max-inline-size: 100%; overflow: visible; }
.mdv2-guide-icon__lines { fill: none; stroke: rgb(var(--mdv2-pale) / 0.38); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mdv2-guide-icon__dot { fill: rgb(var(--mdv2-pale) / 0.45); }
.mdv2-guide-icon__glow { fill: rgb(var(--mdv2-warm) / 0.22); }
.mdv2-guide-icon__ring { fill: var(--mdv2-deep); stroke: rgb(var(--mdv2-pale) / 0.45); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mdv2-guide-icon__ring.is-lit { fill: rgb(32 27 22); stroke: var(--home-amber); stroke-width: 1.4; }
.mdv2-guide-icon__number { fill: var(--home-text-soft); font-family: var(--home-font); font-size: 15px; font-variant-numeric: lining-nums; text-anchor: middle; dominant-baseline: central; }
.mdv2-guide-icon[viewBox="40 40 720 720"] .mdv2-guide-icon__number { font-size: 84px; }
.mdv2-guide-icon__number.is-lit { fill: #ffe2b5; }
.mdv2-guide-icon__link { fill: none; stroke: rgb(var(--mdv2-warm) / 0.6); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.mdv2-guide-icon__arrow { fill: none; stroke: var(--home-amber); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.mdv2-guide-icon__text { fill: none; stroke: rgb(var(--mdv2-pale) / 0.32); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.mdv2-guide-icon__text.is-lit { stroke: rgb(var(--mdv2-warm) / 0.85); }
.mdv2-guide-icon__span { fill: none; stroke: rgb(var(--mdv2-warm) / 0.75); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.mdv2-guide-icon__tick { fill: none; stroke: rgb(var(--mdv2-pale) / 0.35); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mdv2-guide-icon__op { fill: var(--home-text-muted); font-family: var(--home-font); font-size: 14px; text-anchor: middle; dominant-baseline: central; }
.mdv2-lead__heading { display: flex; align-items: center; gap: var(--home-space-3); }
.mdv2-lead__mark { flex: none; inline-size: 0.9rem; block-size: 0.9rem; fill: #ffe2b5; filter: drop-shadow(0 0 0.35rem rgb(var(--mdv2-warm) / 0.9)); }
.mdv2-lead--guide .mdv2-lead__sky::before { left: 30%; top: 8%; inline-size: 64%; block-size: 30%; }

/* ── The entry of the reading, as the brand opens a large section: the overline between two thin lines, the name of
   the reading straight, the date of birth as its golden line, a warm light behind; the opening words follow on the
   same axis, and the scheme's name stands over the scheme as the overline of its stage ── */
[data-matrix-design="v2"] [data-matrix-answer-body] > .account-section-heading { position: relative; display: block; margin: var(--home-space-12) auto var(--home-space-8); text-align: center; isolation: isolate; }
[data-matrix-design="v2"] [data-matrix-answer-body] > .account-section-heading::before { position: absolute; z-index: -1; inset: -5rem -12% -6rem; content: ''; background: radial-gradient(closest-side, rgb(var(--mdv2-warm) / 0.15), rgb(var(--mdv2-warm) / 0.05) 50%, transparent); pointer-events: none; }
[data-matrix-design="v2"] [data-matrix-answer-body] > .account-section-heading > div { display: grid; justify-items: center; }
[data-matrix-design="v2"] [data-matrix-answer-body] > .account-section-heading .eyebrow,
[data-matrix-design="v2"] .mdv2-hero__head > .mdv2-hero__label { display: flex; align-items: center; justify-content: center; gap: var(--home-space-4); margin: 0 0 var(--home-space-6); color: var(--home-amber); font-family: var(--home-font); font-size: var(--home-type-caption); font-weight: 600; letter-spacing: 0.2em; line-height: 1.4; text-transform: uppercase; }
[data-matrix-design="v2"] [data-matrix-answer-body] > .account-section-heading .eyebrow::before,
[data-matrix-design="v2"] [data-matrix-answer-body] > .account-section-heading .eyebrow::after,
[data-matrix-design="v2"] .mdv2-hero__head > .mdv2-hero__label::before,
[data-matrix-design="v2"] .mdv2-hero__head > .mdv2-hero__label::after { flex: none; inline-size: clamp(2rem, 6vw, 3.5rem); block-size: 1px; content: ''; background: linear-gradient(90deg, transparent, rgb(var(--mdv2-warm) / 0.7)); }
[data-matrix-design="v2"] [data-matrix-answer-body] > .account-section-heading .eyebrow::after,
[data-matrix-design="v2"] .mdv2-hero__head > .mdv2-hero__label::after { background: linear-gradient(90deg, rgb(var(--mdv2-warm) / 0.7), transparent); }
[data-matrix-design="v2"] [data-matrix-answer-body] > .account-section-heading h2 { margin: 0; color: var(--home-text); font-family: var(--home-font); font-size: var(--home-type-numeral); font-weight: 400; line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
[data-matrix-design="v2"] [data-matrix-answer-body] > .account-section-heading [data-matrix-date] { margin: var(--home-space-4) 0 0; color: var(--home-amber); font-family: var(--home-font); font-size: calc(var(--home-type-title) * 1.3); font-style: italic; font-variant-numeric: lining-nums; line-height: 1.2; text-shadow: 0 0 2rem rgb(var(--mdv2-warm) / 0.35); }
[data-matrix-design="v2"] [data-matrix-answer-body] > .matrix-save { justify-content: center; margin: 0 auto var(--home-space-8); text-align: center; }

/* ── The opening, as a chapter of its own: the large matrix to choose points on and the card of the chosen one ── */
[data-matrix-design="v2"] .numerology-scene.mdv2-hero { display: grid; gap: var(--home-space-8); }
[data-matrix-design="v2"] .mdv2-hero__head { display: grid; justify-items: center; gap: 0; max-inline-size: 46rem; margin-inline: auto; text-align: center; }
[data-matrix-design="v2"] .mdv2-hero__head > .mdv2-hero__label { margin: var(--home-space-12) 0 0; }
[data-matrix-design="v2"] .mdv2-hero__head > .mdv2-hero__label:first-child { margin-top: 0; }
[data-matrix-design="v2"] .mdv2-hero__head > .numerology-lead__opening { max-inline-size: 42rem; margin: 0; color: var(--home-text-muted); font-size: var(--home-type-lead); line-height: 1.65; text-align: center; text-wrap: pretty; }
[data-matrix-design="v2"] .mdv2-hero__head > .numerology-lead__opening + .numerology-lead__opening { margin-top: var(--home-space-4); }
[data-matrix-design="v2"] .numerology-scene.mdv2-hero > .numerology-scene__stage { display: grid; gap: var(--home-space-10); align-items: center; }
[data-matrix-design="v2"] .mdv2-hero .numerology-scene__figure--matrix { position: relative; inline-size: min(100%, 42rem); margin-inline: auto; }
[data-matrix-design="v2"] .mdv2-hero__side { display: grid; align-content: center; gap: var(--home-space-6); min-width: 0; }
[data-matrix-design="v2"] .mdv2-hero__hint { display: flex; align-items: flex-start; gap: var(--home-space-4); margin: 0; color: var(--home-text-muted); font-size: var(--home-type-label); line-height: 1.6; }
.mdv2-hero__tap { position: relative; flex: none; inline-size: 1.5rem; block-size: 1.5rem; margin-top: 0.1rem; border: 1px solid rgb(var(--mdv2-warm) / 0.7); border-radius: 50%; }
.mdv2-hero__tap::before { position: absolute; inset: 0.4rem; content: ''; border-radius: 50%; background: var(--home-amber); box-shadow: 0 0 0.6rem rgb(var(--mdv2-warm) / 0.9); }
/* The card of the chosen point, in the reading's own words: where it stands, its number in gold, its theme. */
[data-matrix-design="v2"] .mdv2-hero .numerology-scene__key { gap: var(--home-space-5); padding: var(--home-space-8); border-radius: var(--home-radius-surface); background: linear-gradient(160deg, rgb(var(--mdv2-warm) / 0.07), rgb(255 255 255 / 0.025) 45%); }
[data-matrix-design="v2"] .mdv2-hero .numerology-scene__overline { align-items: center; color: var(--home-amber); letter-spacing: 0.16em; }
[data-matrix-design="v2"] .mdv2-hero .numerology-scene__overline .mdv2-mark { inline-size: 2rem; block-size: 2rem; }
[data-matrix-design="v2"] .mdv2-hero .numerology-scene__headline { align-items: center; }
[data-matrix-design="v2"] .mdv2-hero .numerology-scene__value { color: var(--mdv2-gold); text-shadow: 0 0 1.6rem rgb(var(--mdv2-warm) / 0.45); }
[data-matrix-design="v2"] .mdv2-hero .numerology-scene__excerpt { color: var(--home-text-soft); }
/* The arithmetic of a point is told after the reading, in «Как получились эти числа»; the card leads nowhere by itself
   (much of the reading opens only once bought), so its jump into the reading is left out. */
[data-matrix-design="v2"] .mdv2-hero .numerology-scene__key :is(.numerology-scene__formula, .numerology-scene__read, .numerology-scene__jump) { display: none; }
[data-matrix-design="v2"] .mdv2-hero .numerology-scene__excerpt { -webkit-line-clamp: 4; line-clamp: 4; }
[data-matrix-design="v2"] .mdv2-hero__below { display: flex; align-items: flex-start; gap: var(--home-space-3); margin: 0; padding-inline: var(--home-space-2); color: #f1d9b5; font-size: var(--home-type-label); font-style: italic; line-height: 1.55; }
.mdv2-hero__below-mark { flex: none; inline-size: 0.8rem; block-size: 0.8rem; margin-top: 0.3em; fill: #ffe2b5; filter: drop-shadow(0 0 0.35rem rgb(var(--mdv2-warm) / 0.8)); }
/* The matrix in the reading's light: deep discs, warm rings for the chosen point and what it is made of. */
[data-matrix-design="v2"] .mdv2-hero .numerology-orb__ring { fill: var(--mdv2-deep); stroke: rgb(var(--mdv2-pale) / 0.36); }
[data-matrix-design="v2"] .mdv2-hero .numerology-orb__ring:is(.is-active, .is-focus) { fill: rgb(32 27 22); stroke: var(--home-amber); stroke-width: 1.8; }
[data-matrix-design="v2"] .mdv2-hero .numerology-orb__ring.is-source { fill: rgb(30 26 24); stroke: rgb(var(--mdv2-warm) / 0.75); }
[data-matrix-design="v2"] .mdv2-hero .numerology-orb[aria-pressed="true"] { color: #fff3df; text-shadow: 0 0 0.8rem rgb(var(--mdv2-warm) / 0.8); }
[data-matrix-design="v2"] .mdv2-hero .numerology-orb.is-source { color: #f1d2a6; }
/* Where the card stands under the drawing, the hint comes before the drawing, so it is read before a point is chosen. */
@container answer (max-width: 51.999rem) {
    [data-matrix-design="v2"] .mdv2-hero__side { display: contents; }
    [data-matrix-design="v2"] .mdv2-hero__hint { order: -1; }
}
@container answer (min-width: 52rem) {
    [data-matrix-design="v2"] .numerology-scene.mdv2-hero > .numerology-scene__stage { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); column-gap: var(--home-space-12); }
    [data-matrix-design="v2"] .mdv2-hero .numerology-scene__figure--matrix { inline-size: 100%; max-inline-size: 42rem; }
}
/* The line that leads below: a short thread and an arrow that breathes, under the opening. */
[data-matrix-design="v2"] .mdv2-hero__next { display: grid; justify-items: center; gap: var(--home-space-3); margin: var(--home-space-6) auto 0; color: var(--home-amber); letter-spacing: 0.16em; }
[data-matrix-design="v2"] .mdv2-hero__next::before { display: block; inline-size: 1px; block-size: 3rem; content: ''; background: linear-gradient(180deg, transparent, rgb(var(--mdv2-warm) / 0.7)); }
[data-matrix-design="v2"] .mdv2-hero__next::after { margin: 0; color: #ffe2b5; }
[data-matrix-design="v2"] .numerology-answer-doc > .postcard-offer { margin-top: var(--home-space-12); }
[data-matrix-design="v2"] .numerology-answer-doc > .past-life-contents { margin-top: var(--home-space-16); }
@media (max-width: 47.999rem) {
    [data-matrix-design="v2"] [data-matrix-answer-body] > .account-section-heading { margin-top: var(--home-space-8); }
    [data-matrix-design="v2"] [data-matrix-answer-body] > .account-section-heading .eyebrow,
    [data-matrix-design="v2"] .mdv2-hero__head > .mdv2-hero__label { gap: var(--home-space-3); letter-spacing: 0.16em; }
    [data-matrix-design="v2"] [data-matrix-answer-body] > .account-section-heading .eyebrow::before,
    [data-matrix-design="v2"] [data-matrix-answer-body] > .account-section-heading .eyebrow::after,
    [data-matrix-design="v2"] .mdv2-hero__head > .mdv2-hero__label::before,
    [data-matrix-design="v2"] .mdv2-hero__head > .mdv2-hero__label::after { inline-size: 1.75rem; }
    [data-matrix-design="v2"] .mdv2-hero__head > .mdv2-hero__label { margin-top: var(--home-space-10); }
    [data-matrix-design="v2"] .mdv2-hero .numerology-scene__key { padding: var(--home-space-6) var(--home-space-5); }
    .mdv2-bridge { margin-top: var(--home-space-12); }
    .mdv2-bridge__thread { block-size: var(--home-space-12); }
    .mdv2-places { align-items: flex-start; }
}

/* The closing words after the reading. */
[data-matrix-design="v2"] .numerology-answer-doc > .numerology-closing { max-inline-size: 44rem; margin: var(--home-space-16) auto; color: var(--home-text-muted); text-align: center; }

/* ── Wide screens: the drawing rides beside its words, under the site's header, never past its own chapter ── */
@media (min-width: 60rem) {
    .mdv2-stage { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); column-gap: var(--home-space-16); align-items: start; }
    .mdv2-stage__visual { position: sticky; top: var(--mdv2-top); inline-size: 100%; }
    .mdv2-stage__visual > * { max-inline-size: calc(var(--stable-screen-height, 100dvh) - var(--mdv2-top) - var(--home-space-10)); margin-inline: auto; }
    .mdv2-stage--tree .mdv2-stage__visual > * { max-inline-size: calc((var(--stable-screen-height, 100dvh) - var(--mdv2-top) - var(--home-space-10)) * 600 / 660); }
    .mdv2-stage--family .mdv2-stage__visual > * { max-inline-size: calc((var(--stable-screen-height, 100dvh) - var(--mdv2-top) - var(--home-space-10)) * 620 / 600); }
    .mdv2-stage--bridge .mdv2-stage__visual > * { max-inline-size: calc((var(--stable-screen-height, 100dvh) - var(--mdv2-top) - var(--home-space-10)) * 680 / 720); }
    .mdv2-stage--story { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
    .mdv2-stage--story.mdv2-stage--flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
    .mdv2-stage--story .mdv2-stage__visual > * { max-inline-size: min(26rem, calc((var(--stable-screen-height, 100dvh) - var(--mdv2-top) - var(--home-space-10)) * 420 / 620)); }
    .mdv2-stage--flip:not(.mdv2-stage--story) { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
    .mdv2-stage--flip .mdv2-stage__visual { grid-column: 2; grid-row: 1; }
    .mdv2-stage--flip .mdv2-stage__words { grid-column: 1; grid-row: 1; }
    /* Room for the last part to reach the reading line while its drawing still stands beside it. */
    .mdv2-stage:not(.mdv2-stage--heart) .mdv2-stage__words { padding-bottom: var(--home-space-16); }
    .mdv2-age { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--home-space-16); }
}

/* ── Motion: light that breathes, sparks that run, things that wake as they come into sight. Everything shows its
   meaning standing still; motion only leads the eye, rests out of sight, and a phone keeps only the light ones. ── */
@media (prefers-reduced-motion: no-preference) {
    .mdv2-spark.is-on, .mdv2-spark.is-lit, .mdv2-spark.is-running { animation: mdv2-spark 3.6s linear infinite; }
    /* A newly lit way starts at its source; only the always-running decoration is staggered into its cycle. */
    .mdv2-flow .mdv2-spark.is-on:nth-child(2n) { animation-delay: -1.2s; }
    .mdv2-flow .mdv2-spark.is-on:nth-child(3n) { animation-delay: -2.3s; }
    .mdv2-ornament__star, .mdv2-star { animation: mdv2-twinkle-star 3.6s ease-in-out infinite alternate; }
    .mdv2-halo:is(.is-lit, .is-fading) > circle, .mdv2-heart__light, .mdv2-rays__heart, .mdv2-tree__crown, .mdv2-bridge__keystone, .mdv2-family__heart, .mdv2-age__light, .mdv2-tail__depth, .mdv2-age__now-light,
    [data-matrix-design="v2"] .mdv2-hero__heart { transform-box: fill-box; transform-origin: center; animation: mdv2-breathe 3.6s ease-in-out infinite alternate; }
    .mdv2-figure--heart .mdv2-halo { transform-box: fill-box; transform-origin: center; animation: mdv2-breathe 4.2s ease-in-out infinite alternate; }
    .mdv2-card__aura { animation: mdv2-breathe 4.2s ease-in-out infinite alternate; }
    .mdv2-journey__wave { transform-box: fill-box; transform-origin: center; animation: mdv2-echo 6.6s ease-out infinite; }
    .mdv2-journey__wave--2 { animation-delay: -2.2s; }
    .mdv2-journey__wave--3 { animation-delay: -4.4s; }
    .mdv2-journey__crown { transform-box: fill-box; transform-origin: center; animation: mdv2-breathe 3.6s ease-in-out infinite alternate; }
    /* The lesson's rays swell all the time, lit or not, so lighting them only warms their colour: nothing jumps. */
    .mdv2-journey__rays { transform-box: fill-box; transform-origin: center; animation: mdv2-swell 3.6s ease-in-out infinite alternate; }
    .mdv2-lead__sky::before { animation: mdv2-lead-glow 5s ease-in-out infinite alternate; }
    .mdv2-card__face:hover .mdv2-card__shine::before, .mdv2-card__face:active .mdv2-card__shine::before { animation: mdv2-shine 1.1s ease-out; }

    /* A drawing waits unseen until it comes into sight, then its lines draw in and its light rises. */
    .mdv2-reading.is-waking :is(.mdv2-stage__visual, .mdv2-tail, .mdv2-age .mdv2-figure) { transition: opacity 900ms ease-out, scale 1100ms cubic-bezier(0.22, 0.7, 0.2, 1); }
    .mdv2-reading.is-waking .mdv2-stage:not(.is-seen) > .mdv2-stage__visual,
    .mdv2-reading.is-waking .mdv2-age:not(.is-seen) .mdv2-figure { opacity: 0; scale: 0.92; }
    .mdv2-reading.is-waking .mdv2-tail:not(.is-seen) { opacity: 0; }
    .mdv2-reading.is-waking :is(.is-seen) .mdv2-way { transition: stroke-dashoffset 1800ms cubic-bezier(0.37, 0, 0.18, 1) 200ms, stroke 1400ms ease-in-out, stroke-width 1400ms ease-in-out, opacity 1400ms ease-in-out; }
    .mdv2-reading.is-waking :is(.mdv2-stage, .mdv2-tail, .mdv2-age):not(.is-seen) .mdv2-way { stroke-dasharray: 1; stroke-dashoffset: 1; }
    .mdv2-reading.is-waking .is-seen .mdv2-way { stroke-dasharray: 1; stroke-dashoffset: 0; }
    .mdv2-reading.is-waking .mdv2-tail:not(.is-seen) .mdv2-card { opacity: 0; translate: 0 1.5rem; }
    .mdv2-reading.is-waking .mdv2-tail .mdv2-card { transition: opacity 900ms ease-out, translate 1100ms cubic-bezier(0.22, 0.7, 0.2, 1); }
    .mdv2-reading.is-waking .mdv2-tail .mdv2-card--step-2 { transition-delay: 220ms; }
    .mdv2-reading.is-waking .mdv2-tail .mdv2-card--step-3 { transition-delay: 440ms; }
    .mdv2-reading.is-waking .mdv2-ornament__line { transition: scale 1200ms cubic-bezier(0.22, 0.7, 0.2, 1); }
    .mdv2-reading.is-waking .mdv2-ornament:not(.is-seen) .mdv2-ornament__line { scale: 0 1; }
    .mdv2-reading.is-arriving .mdv2-reveal:not(.is-in) { opacity: 0; translate: 0 0.9rem; }
    .mdv2-reading.is-arriving .mdv2-reveal.is-in { transition: opacity 700ms ease-out, translate 900ms cubic-bezier(0.22, 0.7, 0.2, 1); }
    /* The point read sends out a soft ring twice when it is lit, then rests: enough to be found, never a blinking. */
    .mdv2-beacon.is-lit { animation: mdv2-beacon 2.2s cubic-bezier(0.22, 0.7, 0.2, 1) 120ms 2 both; }
    /* A bridge draws its thread down as it comes into sight. */
    .mdv2-reading.is-waking .mdv2-bridge__thread { transition: scale 1200ms cubic-bezier(0.22, 0.7, 0.2, 1); }
    .mdv2-reading.is-waking .mdv2-bridge:not(.is-seen) .mdv2-bridge__thread { scale: 1 0; }
    .mdv2-reading.is-waking .mdv2-trio__beads::before { transition: scale 1400ms cubic-bezier(0.22, 0.7, 0.2, 1) 200ms; transform-origin: left center; }
    .mdv2-reading.is-waking .mdv2-trio:not(.is-seen) .mdv2-trio__beads::before { scale: 0 1; }
    .mdv2-reading.is-waking .reading-finale .mdv2-seal { transition: opacity 1200ms ease-out, scale 1400ms cubic-bezier(0.22, 0.7, 0.2, 1); }
    .mdv2-reading.is-waking .reading-finale:not(.is-seen) .mdv2-seal { opacity: 0; scale: 0.9; }
    .mdv2-seal__light { transform-box: fill-box; transform-origin: center; animation: mdv2-breathe 4.2s ease-in-out infinite alternate; }
    /* Under the opening: the hint's dot calls a few times for a touch, the arrow below breathes a few times. */
    .mdv2-hero__tap::before { animation: mdv2-tap 2.4s ease-out 1.2s 4 both; }
    [data-matrix-design="v2"] .mdv2-hero__next::after { animation: mdv2-down 2.2s ease-in-out 2s 3 both; }
}
@keyframes mdv2-echo { 0% { opacity: 0; scale: 0.72; } 25% { opacity: 0.45; } 100% { opacity: 0; scale: 1.4; } }
/* The ring of a point read comes up out of nothing before it widens, so lighting a point never flashes. */
@keyframes mdv2-beacon { 0% { opacity: 0; scale: 0.92; } 16% { opacity: 0.9; } 100% { opacity: 0; scale: 2.1; } }
@keyframes mdv2-swell { from { scale: 0.97; } to { scale: 1.03; } }
@keyframes mdv2-tap { 0% { scale: 1; box-shadow: 0 0 0 0 rgb(241 185 109 / 0.7); } 70% { scale: 0.85; box-shadow: 0 0 0 0.55rem rgb(241 185 109 / 0); } 100% { scale: 1; box-shadow: 0 0 0 0 rgb(241 185 109 / 0); } }
@keyframes mdv2-down { 0%, 100% { translate: 0 0; } 50% { translate: 0 0.35rem; } }
/* Stars twinkle only where the pointer is fine: a phone keeps the light, the breathing and the sparks. */
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
    .mdv2-sky > g { animation: mdv2-twinkle-set 5.2s ease-in-out infinite alternate; }
    .mdv2-sky > g:nth-child(2) { animation-delay: -1.8s; animation-duration: 4.4s; }
    .mdv2-sky > g:nth-child(3) { animation-delay: -3.3s; animation-duration: 6s; }
    .mdv2-lead__star { animation: mdv2-twinkle 4.5s ease-in-out infinite alternate; }
}
@keyframes mdv2-spark {
    0% { opacity: 0; stroke-dashoffset: 0.12; }
    6% { opacity: 1; }
    80% { opacity: 1; stroke-dashoffset: -1; }
    84%, 100% { opacity: 0; stroke-dashoffset: -1; }
}
@keyframes mdv2-twinkle { from { opacity: 0.1; } to { opacity: 0.75; } }
@keyframes mdv2-twinkle-set { from { opacity: 0.25; } to { opacity: 1; } }
@keyframes mdv2-twinkle-star { from { opacity: 0.6; scale: 0.82; } to { opacity: 1; scale: 1.08; } }
@keyframes mdv2-breathe { from { opacity: 0.72; scale: 0.94; } to { opacity: 1; scale: 1.06; } }
@keyframes mdv2-lead-glow { from { opacity: 0.65; } to { opacity: 1; } }
@keyframes mdv2-shine { 0% { opacity: 0; transform: translateX(-60%); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateX(60%); } }

@media (hover: none), (pointer: coarse) {
    .mdv2-card__face:active { scale: 0.94; rotate: -1.5deg; }
    /* A phone repaints a whole drawing for every frame of any motion inside it: there the drawings stand still in their
       light — the part read still lights up, softly — and only the light outside the drawings breathes. */
    .mdv2-plot *, [data-matrix-design="v2"] :is(.mdv2-hero__light, .mdv2-hero__flow) * { animation: none !important; transition: none !important; }
    .mdv2-lens > .mdv2-figure--rays, .mdv2-lens > .mdv2-callout,
    .mdv2-reading :is(.mdv2-age__cell, .mdv2-mark__glow, .mdv2-story-mark) { transition: none; }
    .mdv2-reading :is(.mdv2-ornament__star, .mdv2-star, .mdv2-card__aura),
    [data-matrix-design="v2"] .mdv2-hero__next::after { animation: none; }
    .mdv2-figure--heart .mdv2-spark, .mdv2-tail .mdv2-spark { opacity: 0; }
    .mdv2-hero__tap::before { animation: none; }
}
@media (max-width: 59.999rem) {
    .mdv2-stage__visual { inline-size: min(100%, 26rem); }
    .mdv2-stage--story .mdv2-stage__visual { inline-size: min(100%, 17rem); }
}
@media (max-width: 47.999rem) {
    .mdv2-reading { margin-top: var(--home-space-16); }
    .mdv2-chapter { margin-bottom: var(--home-space-24); }
    .mdv2-chapter__head { margin-bottom: var(--home-space-10); }
    .mdv2-chapter__note { margin-top: var(--home-space-6); }
    .mdv2-figure--heart { --mdv2-caption: 32px; }
    .mdv2-figure--rays { --mdv2-caption: 26px; }
    .mdv2-figure--tree, .mdv2-figure--family { --mdv2-caption: 17px; }
    .mdv2-figure--bridge { --mdv2-caption: 17px; }
    .mdv2-figure--age { --mdv2-caption: 19px; }
    .mdv2-heart__card { inline-size: 27%; }
    .mdv2-tail { aspect-ratio: 960 / 640; }
    .mdv2-card--step-1 { left: 6%; top: 12%; inline-size: 24%; }
    .mdv2-card--step-2 { left: 38%; top: 20%; inline-size: 24%; }
    .mdv2-card--step-3 { left: 70%; top: 28%; inline-size: 24%; }
    .mdv2-card__place { max-inline-size: 6.5rem; }
    .mdv2-tail .mdv2-card__number { min-inline-size: 2rem; block-size: 2rem; font-size: 1rem; }
    .mdv2-tail__plot { opacity: 0.6; }
    .mdv2-age__table { border-spacing: 0.15rem; }
    .mdv2-age__cell-value { font-size: 0.85rem; }
}
@media (prefers-reduced-motion: reduce) {
    .mdv2-reading *, .mdv2-reading *::before, .mdv2-reading *::after, .mdv2-lead__sky *, .mdv2-lead__sky::before, [data-matrix-design="v2"] .mdv2-hero__light *, [data-matrix-design="v2"] .mdv2-hero__flow *,
    [data-matrix-design="v2"] :is(.mdv2-hero__tap, .mdv2-hero__tap::before, .mdv2-hero__next, .mdv2-hero__next::after, .mdv2-lead__mark) { animation: none !important; transition: none !important; }
}
