/* ==========================================================================
   MEZUKO — Interactive AI Production Ecosystem
   Every selector is prefixed .mzk- and scoped under .mzk-eco.
   Layout responds to the component's own width (container queries), not the
   viewport, so it adapts to whatever column the host page gives it.

   Contents
     1. Fonts            5. Core               9. Entrance
     2. Tokens           6. Capabilities      10. Stacked layouts
     3. Base             7. Connections       11. Reduced motion
     4. Header / caption 8. Vignette motion
   ========================================================================== */

/* 1. Fonts — bundled locally (SIL OFL), Latin + Cyrillic ------------------- */

@font-face {
  font-family: "MZK Serif"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("../assets/fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "MZK Serif"; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url("../assets/fonts/source-serif-4-latin-opsz-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "MZK Serif"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("../assets/fonts/source-serif-4-cyrillic-opsz-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "MZK Serif"; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url("../assets/fonts/source-serif-4-cyrillic-opsz-italic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "MZK Sans"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../assets/fonts/onest-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "MZK Sans"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../assets/fonts/onest-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* 2. Tokens — override any of these on the host element -------------------- */

.mzk-eco {
  --mzk-bg: #f7eee4;                 /* warm ivory ground; set to transparent to inherit the page */
  --mzk-bg-glow: #fcf6ef;            /* lighter centre of the ground */
  --mzk-ink: #15110f;
  --mzk-ink-soft: #5d534c;
  --mzk-accent: #e5461c;             /* red-orange */
  --mzk-line: #cdbfb1;               /* connection lines at rest */
  --mzk-max-width: 1320px;           /* widest the composition may grow */
  --mzk-pad-block: clamp(48px, 7cqi, 104px);   /* space above and below */
  --mzk-pad-inline: clamp(18px, 3.4cqi, 48px);
  --mzk-serif: "MZK Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mzk-sans: "MZK Sans", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --mzk-ease: cubic-bezier(.2, .7, .1, 1);
}

/* 3. Base ------------------------------------------------------------------ */

.mzk-eco {
  container-type: inline-size;
  container-name: mzk;
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 50% 48%, var(--mzk-bg-glow) 0%, transparent 70%),
    var(--mzk-bg);
  color: var(--mzk-ink);
  font-family: var(--mzk-serif);
  font-size: 16px;
  line-height: 1.4;
  font-optical-sizing: auto;
  font-synthesis: none;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
.mzk-eco *, .mzk-eco *::before, .mzk-eco *::after { box-sizing: border-box; }
.mzk-eco :where(p, h2, h3, ul, li) { margin: 0; padding: 0; list-style: none; font: inherit; color: inherit; }

.mzk-inner {
  --mzk-mode: stack;                               /* read by the script: stack | split | radial */
  --core: min(84cqi, 380px);
  max-width: var(--mzk-max-width);
  margin: 0 auto;
  padding: var(--mzk-pad-block) var(--mzk-pad-inline);
}

/* 4. Header and caption ---------------------------------------------------- */

.mzk-head { text-align: center; margin-bottom: clamp(36px, 5cqi, 72px); }
.mzk-eco[data-header="off"] .mzk-head { display: none; }
.mzk-eco[data-wordmark="off"] .mzk-wordmark { display: none; }

.mzk-eco .mzk-wordmark {
  font-weight: 620;
  font-size: clamp(30px, 4.4cqi, 56px);
  letter-spacing: .012em;
  line-height: 1;
  margin-bottom: .42em;
}
.mzk-eco .mzk-wordmark--img { display: block; height: clamp(30px, 4.4cqi, 56px); width: auto; margin-inline: auto; }

.mzk-eco .mzk-title {
  display: flex; align-items: center; justify-content: center; gap: clamp(12px, 2cqi, 28px);
  font-style: italic; font-weight: 400;
  font-size: clamp(22px, 3.1cqi, 42px);
  line-height: 1.15; letter-spacing: -.005em;
  text-wrap: balance;
}
.mzk-eco .mzk-title::before, .mzk-eco .mzk-title::after,
.mzk-foot__idle::before, .mzk-foot__idle::after {
  content: ""; flex: 0 1 clamp(28px, 6cqi, 84px); height: 1px; background: currentColor; opacity: .45;
}
.mzk-eco .mzk-lede {
  max-width: 44em; margin: .9em auto 0;
  font-style: italic; font-size: clamp(15px, 1.55cqi, 20px);
  color: var(--mzk-ink-soft); letter-spacing: .01em; text-wrap: balance;
}

.mzk-foot {
  display: grid; justify-items: center; text-align: center;
  margin-top: clamp(32px, 4.6cqi, 64px);
}
.mzk-foot > * { grid-area: 1 / 1; transition: opacity .45s var(--mzk-ease), transform .45s var(--mzk-ease); }
.mzk-eco .mzk-foot__idle {
  display: flex; align-items: center; justify-content: center; gap: clamp(12px, 2cqi, 28px);
  align-self: center; width: 100%;
  font-style: italic; font-size: clamp(17px, 1.9cqi, 25px);
}
.mzk-foot__tagline { text-wrap: balance; }
.mzk-foot__active { display: none; }

/* 5. Core ------------------------------------------------------------------ */

.mzk-stage { position: relative; }

.mzk-core {
  --px: 0; --py: 0; --flare: 0deg;
  position: relative; z-index: 2;
  width: var(--core); aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  font-size: calc(var(--core) / 10);
  color: #fff6ee;
  background: #1a0806 url("../assets/core-fallback.svg") center / cover no-repeat;
  box-shadow:
    0 0 0 1px rgba(255, 138, 92, .55),
    0 0 0 5px rgba(229, 70, 28, .07),
    0 0 46px rgba(229, 70, 28, .30),
    0 34px 70px -28px rgba(96, 28, 8, .55);
  transition: box-shadow .6s var(--mzk-ease);
}
.mzk-eco.has-active .mzk-core {
  box-shadow:
    0 0 0 1px rgba(255, 160, 118, .8),
    0 0 0 5px rgba(229, 70, 28, .10),
    0 0 64px rgba(229, 70, 28, .42),
    0 34px 70px -28px rgba(96, 28, 8, .55);
}
.mzk-core__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; border-radius: 50%;
}
.mzk-no-webgl .mzk-core__canvas { display: none; }
.mzk-core::after {                                   /* inner rim light */
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 170, 130, .28), inset 0 0 34px rgba(255, 96, 40, .22);
}

/* an arc of light on the rim, facing the active capability */
.mzk-core__flare {
  position: absolute; inset: -5%; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from calc(var(--flare) - 42deg), transparent 0deg, rgba(255, 150, 104, .95) 42deg, transparent 84deg, transparent 360deg);
  -webkit-mask: radial-gradient(closest-side, transparent 90.4%, #000 91.6%, #000 93.5%, transparent 99%);
          mask: radial-gradient(closest-side, transparent 90.4%, #000 91.6%, #000 93.5%, transparent 99%);
  opacity: 0;
  transition: opacity .5s var(--mzk-ease);
}
.mzk-eco.has-active .mzk-core__flare { opacity: 1; transition-delay: .3s; }

.mzk-core__copy {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 11% 17%;
  text-align: center;
  transform: translate(calc(var(--px) * -5px), calc(var(--py) * -4px));
  transition: transform .5s var(--mzk-ease);
}
.mzk-eco .mzk-core__badge {
  font-family: var(--mzk-sans); font-weight: 600;
  font-size: max(10px, .27em); letter-spacing: .17em; text-transform: uppercase; line-height: 1;
  color: #fff; background: #dc4118;
  padding: .62em 1.5em .58em;
  clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
  margin-bottom: 1.5em;
}
.mzk-eco .mzk-core__title {
  font-style: italic; font-weight: 500;
  font-size: 1em; line-height: 1.06; letter-spacing: -.012em;
  text-wrap: balance; text-shadow: 0 1px 18px rgba(20, 5, 3, .55);
}
.mzk-core__rule { display: block; width: 2.1em; height: 1px; background: currentColor; opacity: .7; margin: .5em 0 .42em; }
.mzk-core__lines { display: grid; justify-items: center; width: 100%; }
.mzk-core__lines > * {
  grid-area: 1 / 1;
  font-size: max(12px, .36em); line-height: 1.38;
  text-shadow: 0 1px 10px rgba(20, 5, 3, .7);
  transition: opacity .4s var(--mzk-ease), transform .4s var(--mzk-ease);
}
.mzk-eco .mzk-core__support { font-style: italic; max-width: 21em; text-wrap: balance; opacity: .94; }
.mzk-eco .mzk-core__feeds { max-width: 20em; opacity: 0; transform: translateY(.5em); text-wrap: balance; }
.mzk-core__feeds-label {
  display: block; margin-bottom: .45em;
  font-family: var(--mzk-sans); font-weight: 600; font-size: .74em; letter-spacing: .13em; text-transform: uppercase;
  color: #ffb08c;
}
.mzk-core__feeds-text { font-style: italic; }
.mzk-eco.has-active .mzk-core__support { opacity: 0; transform: translateY(-.5em); }
.mzk-eco.has-active .mzk-core__feeds { opacity: 1; transform: none; transition-delay: .12s; }

/* 6. Capabilities ---------------------------------------------------------- */

.mzk-cap {
  position: relative; z-index: 1;
  border: 1px solid rgba(21, 17, 15, .13);
  border-radius: 24px;
  background: linear-gradient(180deg, #fefaf5, #f5ebdf);
  box-shadow: inset 0 1px 0 #fff, 0 16px 30px -22px rgba(84, 34, 10, .45);
  transition: opacity .45s var(--mzk-ease), transform .45s var(--mzk-ease), border-color .35s, box-shadow .45s var(--mzk-ease);
}
.mzk-pill__text { transition: opacity .45s var(--mzk-ease); }
.mzk-eco.has-active .mzk-cap:not(.is-active) .mzk-pill__text { opacity: .42; }
.mzk-eco.has-active .mzk-cap:not(.is-active) .mzk-art { filter: saturate(.55) brightness(.72); }
.mzk-eco.has-active .mzk-cap:not(.is-active) .mzk-cap__dot { opacity: .45; }
.mzk-cap.is-active {
  border-color: rgba(229, 70, 28, .6);
  box-shadow: inset 0 1px 0 #fff, 0 22px 36px -22px rgba(170, 52, 14, .55);
}

.mzk-eco .mzk-pill {
  all: unset; box-sizing: border-box;
  display: flex; align-items: stretch;
  width: 100%; min-height: 84px;
  border-radius: inherit; overflow: hidden;
  cursor: pointer;
  font-family: var(--mzk-serif); color: var(--mzk-ink);
}
.mzk-eco .mzk-pill:focus-visible { outline: 2px solid var(--mzk-accent); outline-offset: 3px; }

.mzk-pill__art {
  flex: 0 0 96px; position: relative; overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 74% 100%, 0 100%);
  background: #1a0806;
}
.mzk-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: transform .7s var(--mzk-ease), filter .5s; filter: saturate(.92) brightness(.94); }
.mzk-cap.is-active .mzk-art { transform: scale(1.06); filter: none; }

.mzk-pill__text {
  flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  padding: 12px 16px 13px 8px;
}
.mzk-pill__num {
  font-family: var(--mzk-sans); font-weight: 500; font-size: 11px; letter-spacing: .16em; line-height: 1;
  color: var(--mzk-ink-soft); transition: color .3s;
}
.mzk-cap.is-active .mzk-pill__num { color: var(--mzk-accent); }
.mzk-pill__name { overflow-wrap: anywhere; font-weight: 500; font-size: 19px; line-height: 1.14; letter-spacing: -.005em; text-wrap: balance; }

.mzk-pill__chev { flex: 0 0 44px; position: relative; align-self: center; height: 44px; }
.mzk-pill__chev::before, .mzk-pill__chev::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 1.5px; margin: -.75px 0 0 -6.5px;
  background: var(--mzk-ink); opacity: .7; transition: transform .4s var(--mzk-ease), background .3s;
}
.mzk-pill__chev::after { transform: rotate(90deg); }
.mzk-cap.is-open .mzk-pill__chev::after { transform: rotate(0deg); }
.mzk-cap.is-open .mzk-pill__chev::before, .mzk-cap.is-open .mzk-pill__chev::after { background: var(--mzk-accent); opacity: 1; }

.mzk-cap__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--mzk-ease); }
.mzk-cap.is-open .mzk-cap__panel { grid-template-rows: 1fr; }
.mzk-cap__panel-inner { overflow: hidden; min-height: 0; }
.mzk-eco .mzk-cap__desc {
  padding: 2px 20px 18px; font-size: 16px; line-height: 1.5; color: #3b332e;
  opacity: 0; transition: opacity .4s var(--mzk-ease);
}
.mzk-cap.is-open .mzk-cap__desc { opacity: 1; transition-delay: .12s; }

.mzk-cap__dot {
  position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: var(--mzk-accent);
  box-shadow: 0 0 0 3px var(--mzk-bg);
  transition: transform .4s var(--mzk-ease), box-shadow .4s;
}
.mzk-cap.is-active .mzk-cap__dot { transform: scale(1.35); box-shadow: 0 0 0 3px var(--mzk-bg), 0 0 14px rgba(229, 70, 28, .8); }

/* 7. Connections ----------------------------------------------------------- */

.mzk-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.mzk-link { transition: opacity .45s var(--mzk-ease); }
.mzk-link__base {
  fill: none; stroke: var(--mzk-line); stroke-width: 1.25; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 0;
  transition: stroke .4s, stroke-width .4s;
}
.mzk-link__streak {
  fill: none; stroke: #ff6a3a; stroke-width: 2.2; stroke-linecap: round;
  stroke-dasharray: .16 2; stroke-dashoffset: .16;
  filter: drop-shadow(0 0 3px rgba(229, 70, 28, .85));
}
.mzk-eco.has-active .mzk-link:not(.is-active) { opacity: .4; }
.mzk-link.is-active .mzk-link__base { stroke: var(--mzk-accent); stroke-width: 1.5; }
.mzk-link.is-active .mzk-link__streak { animation: mzk-streak 1.5s cubic-bezier(.45, .05, .3, 1) infinite; }
.mzk-link.is-ping .mzk-link__streak { animation: mzk-streak 2.2s cubic-bezier(.45, .05, .3, 1) 1; opacity: .7; }
@keyframes mzk-streak { from { stroke-dashoffset: .16; } to { stroke-dashoffset: -1; } }

/* 8. Vignette motion — runs only while the capability is active ------------ */

.mzk-a-dot { offset-path: path("M14 74 C 34 20, 62 88, 104 30"); offset-distance: 64%; }
.mzk-cap.is-active .mzk-a-dot { animation: mzk-a-travel 2.6s cubic-bezier(.6, 0, .3, 1) infinite alternate; }
@keyframes mzk-a-travel { from { offset-distance: 0%; } to { offset-distance: 100%; } }

.mzk-a-bar, .mzk-a-col, .mzk-a-hero, .mzk-a-plane, .mzk-a-ring { transform-box: fill-box; }
.mzk-a-bar { transform-origin: center; }
.mzk-cap.is-active .mzk-a-bar { animation: mzk-a-wave .9s ease-in-out var(--d) infinite alternate; }
@keyframes mzk-a-wave { from { transform: scaleY(1); } to { transform: scaleY(.3); } }

.mzk-a-plane { transition: transform .7s var(--mzk-ease), fill-opacity .5s; }
.mzk-cap.is-active .mzk-a-plane--a { transform: translateY(-6px); animation: mzk-a-glow 1.8s ease-in-out infinite; }
.mzk-cap.is-active .mzk-a-plane--b { animation: mzk-a-glow 1.8s ease-in-out .3s infinite; }
.mzk-cap.is-active .mzk-a-plane--c { transform: translateY(6px); animation: mzk-a-glow 1.8s ease-in-out .6s infinite; }
.mzk-a-node { transition: transform .7s var(--mzk-ease); }
.mzk-cap.is-active .mzk-a-node { transform: translateY(-6px); }
@keyframes mzk-a-glow { 50% { fill-opacity: .55; } }

.mzk-a-hero { transform-origin: left center; transition: transform .7s var(--mzk-ease); }
.mzk-cap.is-active .mzk-a-hero { transform: scaleX(1.3); }
.mzk-a-cursor { transition: transform .9s var(--mzk-ease); }
.mzk-cap.is-active .mzk-a-cursor { transform: translate(-36px, -9px); }

.mzk-a-col { transform-origin: center bottom; transition: transform .7s var(--mzk-ease) var(--d); transform: scaleY(.72); }
.mzk-cap.is-active .mzk-a-col { transform: scaleY(1); }
.mzk-a-scan { opacity: 0; }
.mzk-cap.is-active .mzk-a-scan { animation: mzk-a-scan 2.2s cubic-bezier(.5, 0, .5, 1) infinite; }
@keyframes mzk-a-scan { 0% { transform: translateX(0); opacity: 0; } 12%, 88% { opacity: .9; } 100% { transform: translateX(78px); opacity: 0; } }

.mzk-a-route { stroke-dasharray: 1; stroke-dashoffset: 0; }
.mzk-cap.is-active .mzk-a-route { animation: mzk-a-draw 1s var(--mzk-ease) both; }
@keyframes mzk-a-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.mzk-a-ring { transform-origin: center; }
.mzk-cap.is-active .mzk-a-ring { animation: mzk-a-ring 1.6s ease-out .7s infinite; }
@keyframes mzk-a-ring { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }

/* 9. Entrance — plays once, when the component scrolls into view ----------- */

.mzk-eco:not(.is-in) :is(.mzk-head, .mzk-core, .mzk-cap, .mzk-foot) { opacity: 0; }
.mzk-eco:not(.is-in) .mzk-link__base { stroke-dashoffset: 1; }

.mzk-eco.is-in .mzk-head { animation: mzk-rise .9s var(--mzk-ease) backwards; }
.mzk-eco.is-in .mzk-core { animation: mzk-core-in 1.3s var(--mzk-ease) .15s backwards; }
.mzk-eco.is-in .mzk-core__copy > * { animation: mzk-rise .9s var(--mzk-ease) backwards; }
.mzk-eco.is-in .mzk-core__badge { animation-delay: .55s; }
.mzk-eco.is-in .mzk-core__title { animation-delay: .65s; }
.mzk-eco.is-in .mzk-core__rule  { animation-delay: .75s; }
.mzk-eco.is-in .mzk-core__lines { animation-delay: .82s; }
.mzk-eco.is-in .mzk-link__base { animation: mzk-link-in 1.1s cubic-bezier(.6, 0, .2, 1) calc(.75s + var(--i) * 80ms) backwards; }
.mzk-eco.is-in .mzk-cap { animation: mzk-cap-in .9s var(--mzk-ease) calc(.95s + var(--i) * 80ms) backwards; }
.mzk-eco.is-in .mzk-foot { animation: mzk-rise .9s var(--mzk-ease) 1.6s backwards; }

@keyframes mzk-rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes mzk-core-in { from { opacity: 0; transform: scale(.93); filter: blur(6px); } }
@keyframes mzk-cap-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes mzk-link-in { from { stroke-dashoffset: -1; } to { stroke-dashoffset: 0; } }

/* 10. Layouts --------------------------------------------------------------
   stack  (< 600px)   core on top, one column of expandable cards
   split  (600–899px) core on top, two columns of expandable cards
   radial (≥ 900px)   the reference composition: three capabilities each side
   ------------------------------------------------------------------------ */

/* stack (default) */
.mzk-eco .mzk-title::before, .mzk-eco .mzk-title::after, .mzk-foot__idle::before, .mzk-foot__idle::after { display: none; }
.mzk-caps { display: grid; gap: 12px; margin-top: 64px; padding-left: 22px; }
.mzk-cap__dot { left: -16px; top: 37.5px; }

@container mzk (min-width: 600px) {
  .mzk-inner { --mzk-mode: split; --core: min(54cqi, 430px); }
  .mzk-eco .mzk-title::before, .mzk-eco .mzk-title::after, .mzk-foot__idle::before, .mzk-foot__idle::after { display: block; }
  /* two independent columns, so opening a card never stretches its neighbour */
  .mzk-caps { display: block; columns: 2; column-gap: 18px; padding-inline: 24px; margin-top: 72px; }
  .mzk-cap { break-inside: avoid; margin-bottom: 14px; }
  .mzk-cap:nth-child(4) { break-before: column; }
  .mzk-cap[data-side="r"] .mzk-cap__dot { left: auto; right: -17px; }
  .mzk-cap[data-side="l"] .mzk-cap__dot { left: -17px; }
}

@container mzk (min-width: 900px) {
  .mzk-inner {
    --mzk-mode: radial;
    --core: clamp(320px, 36cqi, 500px);
    --pill-h: clamp(86px, 8.8cqi, 114px);
    --row-gap: clamp(26px, 5.6cqi, 84px);        /* vertical distance between capabilities */
  }
  .mzk-stage {
    display: grid; align-items: center;
    grid-template-columns: minmax(0, 1fr) var(--core) minmax(0, 1fr);
    grid-template-rows: repeat(3, auto);
    row-gap: var(--row-gap);
  }
  .mzk-caps { display: contents; }
  .mzk-core { grid-column: 2; grid-row: 1 / 4; }

  .mzk-cap { grid-row: var(--row); border-radius: 999px; margin-bottom: 0; --near: 2.4cqi; --far: 1.4cqi; }
  .mzk-cap:nth-child(3n + 2) { --near: 4.6cqi; --far: 0px; }           /* middle row sits further out */
  .mzk-cap[data-side="l"] { grid-column: 1; margin: 0 var(--near) 0 var(--far); }
  .mzk-cap[data-side="r"] { grid-column: 3; margin: 0 var(--far) 0 var(--near); }
  .mzk-cap.is-active { transform: translateY(-2px); }

  .mzk-eco .mzk-pill { min-height: var(--pill-h); }
  .mzk-pill__art { flex-basis: 37%; max-width: 150px; }
  .mzk-pill__text { padding: 10px clamp(18px, 2.2cqi, 34px) 12px 6px; gap: 6px; }
  .mzk-pill__name { font-size: clamp(16px, 1.72cqi, 23px); }
  .mzk-cap[data-side="r"] .mzk-pill { flex-direction: row-reverse; }
  .mzk-cap[data-side="r"] .mzk-pill__art { clip-path: polygon(26% 0, 100% 0, 100% 100%, 0 100%); }
  .mzk-cap[data-side="r"] .mzk-pill__text { padding: 10px 6px 12px clamp(18px, 2.2cqi, 34px); text-align: right; align-items: flex-end; }

  .mzk-pill__chev, .mzk-cap__panel { display: none; }
  .mzk-cap__dot { top: 50%; margin-top: -4.5px; }
  .mzk-cap[data-side="l"] .mzk-cap__dot { left: auto; right: -5px; }
  .mzk-cap[data-side="r"] .mzk-cap__dot { right: auto; left: -5px; }

  /* the caption below the stage carries the description */
  .mzk-foot { min-height: 7.2em; align-items: center; }
  .mzk-foot__active { display: block; max-width: 46em; opacity: 0; transform: translateY(8px); }
  .mzk-eco .mzk-foot__head {
    font-family: var(--mzk-sans); font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
    color: var(--mzk-accent); margin-bottom: .8em;
  }
  .mzk-eco .mzk-foot__desc { font-size: clamp(18px, 1.75cqi, 22px); line-height: 1.45; text-wrap: balance; }
  .mzk-eco.has-active .mzk-foot__idle { opacity: 0; transform: translateY(-8px); }
  .mzk-eco.has-active .mzk-foot__active { opacity: 1; transform: none; transition-delay: .1s; }
}

/* 11. Reduced motion ------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .mzk-eco *, .mzk-eco *::before, .mzk-eco *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .mzk-eco:not(.is-in) :is(.mzk-head, .mzk-core, .mzk-cap, .mzk-foot) { opacity: 1; }
  .mzk-eco:not(.is-in) .mzk-link__base { stroke-dashoffset: 0; }
  .mzk-cap.is-active { transform: none; }
}
